38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
|
|
export const API_ENDPOINTS = {
|
||
|
|
FILES: '/api/files',
|
||
|
|
FILES_CONTENT: '/api/files/content',
|
||
|
|
FILES_MOVE: '/api/files/move',
|
||
|
|
FILES_RECYCLE: '/api/files/recycle',
|
||
|
|
FILES_EXISTS: '/api/files/exists',
|
||
|
|
FILES_RENAME: '/api/files/rename',
|
||
|
|
FILES_CREATE: '/api/files/create',
|
||
|
|
FILES_MKDIR: '/api/files/mkdir',
|
||
|
|
FILES_RESTORE: '/api/files/restore',
|
||
|
|
FILES_PERMANENT_DELETE: '/api/files/permanent-delete',
|
||
|
|
FILES_EMPTY_RECYCLE_BIN: '/api/files/empty-recycle-bin',
|
||
|
|
TIME: '/api/time',
|
||
|
|
TIME_EVENT: '/api/time/event',
|
||
|
|
TIME_STATS: '/api/time/stats',
|
||
|
|
TIME_DAY: '/api/time/day',
|
||
|
|
TIME_MONTH: '/api/time/month',
|
||
|
|
TIME_YEAR: '/api/time/year',
|
||
|
|
TODO: '/api/todo',
|
||
|
|
TODO_ADD: '/api/todo/add',
|
||
|
|
TODO_TOGGLE: '/api/todo/toggle',
|
||
|
|
TODO_UPDATE: '/api/todo/update',
|
||
|
|
TODO_DELETE: '/api/todo/delete',
|
||
|
|
TODO_MIGRATE: '/api/todo/migrate',
|
||
|
|
SEARCH: '/api/search',
|
||
|
|
EVENTS: '/api/events',
|
||
|
|
SYNC: '/api/sync',
|
||
|
|
SYNC_UPLOAD: '/api/sync/upload',
|
||
|
|
SYNC_DOWNLOAD: '/api/sync/download',
|
||
|
|
SYNC_STATUS: '/api/sync/status',
|
||
|
|
PYDEMOS: '/api/pydemos',
|
||
|
|
PYDEMOS_CREATE: '/api/pydemos/create',
|
||
|
|
PYDEMOS_RENAME: '/api/pydemos/rename',
|
||
|
|
PYDEMOS_DELETE: '/api/pydemos/delete',
|
||
|
|
} as const
|
||
|
|
|
||
|
|
export type ApiEndpoint = typeof API_ENDPOINTS[keyof typeof API_ENDPOINTS]
|