This commit is contained in:
7
api/endpoints/getPosts.ts
Normal file
7
api/endpoints/getPosts.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { httpClient } from '../httpClient'
|
||||
|
||||
export const getPosts = (search: string) =>
|
||||
httpClient<Posts>('/api/posts', {
|
||||
method: 'GET',
|
||||
query: { search },
|
||||
})
|
||||
Reference in New Issue
Block a user