const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
const require_controllers_tag_controller = require('../controllers/tag.controller.cjs');
let express = require("express");
express = require_rolldown_runtime.__toESM(express);

//#region src/routes/tags.routes.ts
const tagRouter = (0, express.Router)();
const tagRoute = "/api/tag";
const baseURL = () => `${process.env.BACKEND_URL}${tagRoute}`;
const getTagRoutes = () => ({
	getTags: {
		urlModel: "/",
		url: baseURL(),
		method: "GET"
	},
	addTag: {
		urlModel: "/",
		url: baseURL(),
		method: "POST"
	},
	updateTag: {
		urlModel: "/:tagId",
		url: ({ tagId }) => `${baseURL()}/${tagId}`,
		method: "PUT"
	},
	deleteTag: {
		urlModel: "/:tagId",
		url: ({ tagId }) => `${baseURL()}/${tagId}`,
		method: "DELETE"
	}
});
tagRouter.get(getTagRoutes().getTags.urlModel, require_controllers_tag_controller.getTags);
tagRouter.post(getTagRoutes().addTag.urlModel, require_controllers_tag_controller.addTag);
tagRouter.put(getTagRoutes().updateTag.urlModel, require_controllers_tag_controller.updateTag);
tagRouter.delete(getTagRoutes().deleteTag.urlModel, require_controllers_tag_controller.deleteTag);

//#endregion
exports.getTagRoutes = getTagRoutes;
exports.tagRoute = tagRoute;
exports.tagRouter = tagRouter;
//# sourceMappingURL=tags.routes.cjs.map