update master data

This commit is contained in:
2024-11-30 22:00:02 +07:00
parent 851e260cb7
commit 94d2f60c0d
5 changed files with 445 additions and 19 deletions

View File

@ -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)
}
}