Initial commit
This commit is contained in:
10
shared/modules/recycle-bin/api.ts
Normal file
10
shared/modules/recycle-bin/api.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
15
shared/modules/recycle-bin/index.ts
Normal file
15
shared/modules/recycle-bin/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineApiModule } from '../types.js'
|
||||
import { RECYCLE_BIN_ENDPOINTS } from './api.js'
|
||||
|
||||
export * from './api.js'
|
||||
|
||||
export const RECYCLE_BIN_MODULE = defineApiModule({
|
||||
id: 'recycle-bin',
|
||||
name: '回收站',
|
||||
basePath: '/recycle-bin',
|
||||
order: 40,
|
||||
version: '1.0.0',
|
||||
endpoints: RECYCLE_BIN_ENDPOINTS,
|
||||
})
|
||||
|
||||
export type { RecycleBinEndpoints } from './api.js'
|
||||
Reference in New Issue
Block a user