Initial commit
This commit is contained in:
10
shared/modules/pydemos/api.ts
Normal file
10
shared/modules/pydemos/api.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { defineEndpoints } from '../types.js'
|
||||
|
||||
export const PYDEMOS_ENDPOINTS = defineEndpoints({
|
||||
list: { path: '/', method: 'GET' },
|
||||
create: { path: '/create', method: 'POST' },
|
||||
delete: { path: '/delete', method: 'DELETE' },
|
||||
rename: { path: '/rename', method: 'POST' },
|
||||
})
|
||||
|
||||
export type PyDemosEndpoints = typeof PYDEMOS_ENDPOINTS
|
||||
15
shared/modules/pydemos/index.ts
Normal file
15
shared/modules/pydemos/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineApiModule } from '../types.js'
|
||||
import { PYDEMOS_ENDPOINTS } from './api.js'
|
||||
|
||||
export * from './api.js'
|
||||
|
||||
export const PYDEMOS_MODULE = defineApiModule({
|
||||
id: 'pydemos',
|
||||
name: 'Python Demos',
|
||||
basePath: '/pydemos',
|
||||
order: 50,
|
||||
version: '1.0.0',
|
||||
endpoints: PYDEMOS_ENDPOINTS,
|
||||
})
|
||||
|
||||
export type { PyDemosEndpoints } from './api.js'
|
||||
Reference in New Issue
Block a user