11 lines
339 B
TypeScript
11 lines
339 B
TypeScript
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
|