Initial commit
This commit is contained in:
13
shared/modules/time-tracking/api.ts
Normal file
13
shared/modules/time-tracking/api.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user