initial
This commit is contained in:
11
src/routes/private.ts
Normal file
11
src/routes/private.ts
Normal 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
16
src/routes/public.ts
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user