15 lines
416 B
TypeScript
15 lines
416 B
TypeScript
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
import activequerys from "./route/getCurrentQuerys.js";
|
|
import getArticles from "./route/getActiveArticles.js";
|
|
import currentInv from "./route/getInventory.js";
|
|
|
|
const app = new OpenAPIHono();
|
|
|
|
const routes = [activequerys, getArticles, currentInv] as const;
|
|
|
|
const appRoutes = routes.forEach((route) => {
|
|
app.route("/datamart", route);
|
|
});
|
|
|
|
export default app;
|