diff --git a/src/routes/private.ts b/src/routes/private.ts index b1606d0..8dd385a 100644 --- a/src/routes/private.ts +++ b/src/routes/private.ts @@ -48,6 +48,7 @@ import { SellingPricePercentageController } from '../controllers/pharmacy/sellin import { FactorytoSupplierController } from '../controllers/pharmacy/factory_to_supplier'; import { PatientGroupController } from '../controllers/patient_group'; import { PatientGuarantorController } from '../controllers/patient_guarantor'; +import { GenericNameController } from '../controllers/pharmacy/generic_name'; export class RoutePrivate { static setup(app: express.Application) { @@ -311,12 +312,12 @@ export class RoutePrivate { app.delete('/api/pharmacy/item-class-detail/delete/:id/:hard', ItemClassDetailController.delete) app.put('/api/pharmacy/item-class-detail/restore/:id', ItemClassDetailController.restore) - app.get('/api/pharmacy/generic-name/list', ItemClassDetailController.list) - app.get('/api/pharmacy/generic-name/export', ItemClassDetailController.export) - app.post('/api/pharmacy/generic-name/create', ItemClassDetailController.create) - app.put('/api/pharmacy/generic-name/update/:id', ItemClassDetailController.update) - app.delete('/api/pharmacy/generic-name/delete/:id/:hard', ItemClassDetailController.delete) - app.put('/api/pharmacy/generic-name/restore/:id', ItemClassDetailController.restore) + app.get('/api/pharmacy/generic-name/list', GenericNameController.list) + app.get('/api/pharmacy/generic-name/export', GenericNameController.export) + app.post('/api/pharmacy/generic-name/create', GenericNameController.create) + app.put('/api/pharmacy/generic-name/update/:id', GenericNameController.update) + app.delete('/api/pharmacy/generic-name/delete/:id/:hard', GenericNameController.delete) + app.put('/api/pharmacy/generic-name/restore/:id', GenericNameController.restore) app.get('/api/pharmacy/factory/list', FactoryController.list) app.get('/api/pharmacy/factory/export', FactoryController.export)