import { searchDocUtil } from "../controllers/search.controller.mjs";

//#region src/routes/search.routes.ts
const searchRoute = "/api/search";
const baseURL = () => `${process.env.BACKEND_URL}${searchRoute}`;
const getSearchRoutes = () => ({ doc: {
	urlModel: "/doc",
	url: `${baseURL()}/doc`,
	method: "GET"
} });
const searchRouter = async (fastify) => {
	fastify.get(getSearchRoutes().doc.urlModel, searchDocUtil);
};

//#endregion
export { getSearchRoutes, searchRoute, searchRouter };
//# sourceMappingURL=search.routes.mjs.map