Skip to contentOpen History to see the last commit
api.ts
6 lines178 Bytes
1import type { ProjectsPage } from './types' 3export const projectsAPI = { 4 getProjects: (page = 0): Promise<ProjectsPage> => 5 $fetch('/api/projects', { query: { page } }),