feat(eom): all endpoints created for the eom template to run in all plants
This commit is contained in:
@@ -12,8 +12,23 @@ import { shiftChange } from "../sqlServer/querys/misc/shiftChange.js";
|
||||
import { createLog } from "../logger/logger.js";
|
||||
import lastPurch from "./route/getLastPurchPrice.js";
|
||||
import lastSales from "./route/getLastSalesPrice.js";
|
||||
import gpData from "./route/getGpData.js";
|
||||
import consumptionData from "./route/getProductionConsumption.js";
|
||||
import regrind from "./route/getregrind.js";
|
||||
import soldItems from "./route/getSoldItems.js";
|
||||
import purchased from "./route/getPurchased.js";
|
||||
|
||||
const routes = [stats, history, lastPurch, lastSales] as const;
|
||||
const routes = [
|
||||
stats,
|
||||
history,
|
||||
lastPurch,
|
||||
lastSales,
|
||||
gpData,
|
||||
consumptionData,
|
||||
regrind,
|
||||
soldItems,
|
||||
purchased,
|
||||
] as const;
|
||||
|
||||
const appRoutes = routes.forEach((route) => {
|
||||
app.route("/eom", route);
|
||||
|
||||
Reference in New Issue
Block a user