feat: add core backend modules, inventory services, and patch scripts for AI Pharmacy API
This commit is contained in:
@@ -53,6 +53,7 @@ app.use('/v1/inventory', inventoryRouter);
|
||||
app.use('/v1/orders', dispensingRouter);
|
||||
app.use('/v1/audit', auditRouter);
|
||||
app.use('/v1/rx', prescriptionRouter);
|
||||
app.use('/v1/prescriptions', prescriptionRouter);
|
||||
app.use('/v1/ai', aiRouter);
|
||||
app.use('/v1/integration', integrationRouter);
|
||||
app.use('/v1/patients', integrationRouter);
|
||||
@@ -66,7 +67,10 @@ app.get('/health', (req, res) => {
|
||||
// Global Error Handler
|
||||
app.use(errorHandler);
|
||||
|
||||
import { seedAllExistingTenants } from './db/seedTenant';
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Pharmacy Core API listening on port ${PORT}`);
|
||||
seedAllExistingTenants().catch(err => console.error('Error seeding existing tenants on startup:', err));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user