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