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

api.ts

6 lines178 Bytes

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