import { OpenAPIHono } from "@hono/zod-openapi";

import mgtEvents from "./route/mgtEvents.js";
import tagInfo from "./route/tagInfo.js";
import addReader from "./route/addReader.js";
import updateReader from "./route/updateReader.js";
import manualTrigger from "./route/manualTagRead.js";
import getReaders from "./route/getReaders.js";
import resetRatio from "./route/resetRatio.js";
const app = new OpenAPIHono();

const routes = [
    mgtEvents,
    tagInfo,
    addReader,
    updateReader,
    manualTrigger,
    getReaders,
    resetRatio,
] as const;

// app.route("/server", modules);
const appRoutes = routes.forEach((route) => {
    app.route("/rfid", route);
});

export default app;
