update master data
This commit is contained in:
@ -1,25 +1,9 @@
|
||||
import express from 'express';
|
||||
import { BranchController } from '../controllers/branch';
|
||||
import { ProductController } from '../controllers/product';
|
||||
import { Language } from '../langs/lang';
|
||||
|
||||
export class RoutePublic {
|
||||
static setup(app: express.Application) {
|
||||
|
||||
app.use(Language.apply)
|
||||
|
||||
app.get('/api/branch/list', BranchController.list)
|
||||
app.get('/api/branch/export', BranchController.export)
|
||||
app.post('/api/branch/create', BranchController.create)
|
||||
app.put('/api/branch/update/:id', BranchController.update)
|
||||
app.delete('/api/branch/delete/:id', BranchController.delete)
|
||||
app.put('/api/branch/restore/:id', BranchController.restore)
|
||||
|
||||
app.get('/api/product/list', ProductController.list)
|
||||
app.get('/api/product/export', ProductController.export)
|
||||
app.post('/api/product/create', ProductController.create)
|
||||
app.put('/api/product/update/:id', ProductController.update)
|
||||
app.delete('/api/product/delete/:id', ProductController.delete)
|
||||
app.put('/api/product/restore/:id', ProductController.restore)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user