Files
XCDesktop/shared/modules/recycle-bin/api.ts

11 lines
358 B
TypeScript
Raw Normal View History

2026-03-08 01:34:54 +08:00
import { defineEndpoints } from '../types.js'
export const RECYCLE_BIN_ENDPOINTS = defineEndpoints({
list: { path: '/', method: 'GET' },
restore: { path: '/restore', method: 'POST' },
permanent: { path: '/permanent', method: 'DELETE' },
empty: { path: '/empty', method: 'DELETE' },
})
export type RecycleBinEndpoints = typeof RECYCLE_BIN_ENDPOINTS