Initial commit
This commit is contained in:
12
shared/modules/todo/api.ts
Normal file
12
shared/modules/todo/api.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineEndpoints } from '../types.js'
|
||||
|
||||
export const TODO_ENDPOINTS = defineEndpoints({
|
||||
list: { path: '/', method: 'GET' },
|
||||
save: { path: '/save', method: 'POST' },
|
||||
add: { path: '/add', method: 'POST' },
|
||||
toggle: { path: '/toggle', method: 'POST' },
|
||||
update: { path: '/update', method: 'POST' },
|
||||
delete: { path: '/delete', method: 'DELETE' },
|
||||
})
|
||||
|
||||
export type TodoEndpoints = typeof TODO_ENDPOINTS
|
||||
Reference in New Issue
Block a user