Files
XCDesktop/shared/modules/time-tracking/api.ts
2026-03-08 01:34:54 +08:00

14 lines
514 B
TypeScript

import { defineEndpoints } from '../types.js'
export const TIME_TRACKING_ENDPOINTS = defineEndpoints({
current: { path: '/current', method: 'GET' },
event: { path: '/event', method: 'POST' },
day: { path: '/day/:date', method: 'GET' },
week: { path: '/week/:startDate', method: 'GET' },
month: { path: '/month/:yearMonth', method: 'GET' },
year: { path: '/year/:year', method: 'GET' },
stats: { path: '/stats', method: 'GET' },
})
export type TimeTrackingEndpoints = typeof TIME_TRACKING_ENDPOINTS