This commit is contained in:
alsaze
2025-11-17 18:40:04 +03:00
parent 98af218a35
commit 98cbe03fdf
30 changed files with 27121 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { httpClient } from '../httpClient'
export const getPosts = (search: string) =>
httpClient<Posts>('/api/posts', {
method: 'GET',
query: { search },
})

View File

@@ -0,0 +1,4 @@
import { httpClient } from '../httpClient'
export const getUsers = () =>
httpClient<Users>('/api/users')

2
api/endpoints/index.ts Normal file
View File

@@ -0,0 +1,2 @@
export * from './getPosts'
export * from './getUsers'