import { listenChangeSSE } from "../controllers/eventListener.controller.mjs";

//#region src/routes/eventListener.routes.ts
const eventListenerRoute = "/api/event-listener";
const baseURL = () => `${process.env.BACKEND_URL}${eventListenerRoute}`;
const eventListenerRoutes = () => ({ checkDictionaryChangeSSE: {
	urlModel: "/",
	url: baseURL(),
	method: "GET"
} });
const eventListenerRouter = async (fastify) => {
	fastify.get(eventListenerRoutes().checkDictionaryChangeSSE.urlModel, listenChangeSSE);
};

//#endregion
export { eventListenerRoute, eventListenerRouter, eventListenerRoutes };
//# sourceMappingURL=eventListener.routes.mjs.map