21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
import { qualityRequest } from "../../../database/schema/qualityRequest.js";
|
|
import { db } from "../../../database/dbclient.js";
|
|
|
|
const app = new OpenAPIHono();
|
|
const routes = [] as const;
|
|
|
|
const appRoutes = routes.forEach((route) => {
|
|
app.route("/quality", route);
|
|
});
|
|
app.all("/quality/*", (c) => {
|
|
return c.json({
|
|
success: false,
|
|
message: "You have encounters a quality route that dose not exist.",
|
|
});
|
|
});
|
|
|
|
await db.select().from(qualityRequest);
|
|
|
|
export default app;
|