feat(ocp): added in service plus manual print log

This commit is contained in:
2025-03-19 17:16:39 -05:00
parent ae7e3fd54e
commit 7165c959b9
4 changed files with 150 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import {OpenAPIHono} from "@hono/zod-openapi";
// routes
import manualLabelLog from "./routes/manualPrintLog.js";
import {db} from "../../../database/dbclient.js";
import {settings} from "../../../database/schema/settings.js";
const app = new OpenAPIHono();
const routes = [manualLabelLog] as const;
const setting = await db.select().from(settings);
const appRoutes = routes.forEach((route) => {
app.route("/ocp", route);
});
app.all("/ocp/*", (c) => {
return c.json({success: false, message: "You have encounters a ocp route that dose not exist."});
});
export default app;