import {OpenAPIHono} from "@hono/zod-openapi"; // routes import getInfo from "./route/getInfo.js"; import postRunningNr from "./route/postRunningNumber.js"; import pickedup from "./route/pickedUp.js"; import postsscc from "./route/postSSCC.js"; import getShipments from "./route/getShipmentPallets.js"; const app = new OpenAPIHono(); const routes = [getInfo, postRunningNr, postsscc, pickedup, getShipments] as const; // app.route("/server", modules); const appRoutes = routes.forEach((route) => { app.route("/api/v1", route); }); app.all("/api/v1/*", (c) => { return c.json({success: false, message: "you have encounted an ocme route that dose not exist."}); }); export default app;