This commit is contained in:
2024-11-26 13:19:48 +07:00
commit df875117b0
31 changed files with 1273 additions and 0 deletions

11
src/routes/private.ts Normal file
View File

@ -0,0 +1,11 @@
import express from 'express';
import { Language } from '../langs/lang';
export class RoutePrivate {
static setup(app: express.Application) {
// app.use(Language.apply)
}
}

16
src/routes/public.ts Normal file
View File

@ -0,0 +1,16 @@
import express from 'express';
import { UserController } from '../controllers/user/user';
import { Language } from '../langs/lang';
export class RoutePublic {
static setup(app: express.Application) {
app.use(Language.apply)
app.get('/api/user/list', UserController.list)
app.post('/api/user/create', UserController.create)
app.put('/api/user/update/:id', UserController.update)
app.delete('/api/user/delete/:id', UserController.delete)
app.put('/api/user/restore/:id', UserController.restore)
}
}