Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

api.ts

6 lines186 Bytes

1import type { ProjectsPage } from './types'
2​
3export const projectsAPI = {
4 getProjects: (cursor: number): Promise<ProjectsPage> =>
5 $fetch('/api/projects', { query: { cursor } }),
6}