const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
const require_controllers_dictionary_controller = require('../controllers/dictionary.controller.cjs');
let express = require("express");

//#region src/routes/dictionary.routes.ts
const dictionaryRouter = (0, express.Router)();
const dictionaryRoute = "/api/dictionary";
const baseURL = () => `${process.env.BACKEND_URL}${dictionaryRoute}`;
const getDictionaryRoutes = () => ({
	getDictionaries: {
		urlModel: "/",
		url: baseURL,
		method: "GET"
	},
	getDictionariesKeys: {
		urlModel: "/keys",
		url: `${baseURL}/keys`,
		method: "GET"
	},
	getDictionariesUpdateTimestamp: {
		urlModel: "/update",
		url: `${baseURL}/update`,
		method: "GET"
	},
	getDictionary: {
		urlModel: "/:dictionaryKey",
		url: ({ dictionaryKey }) => `${baseURL}/${dictionaryKey}`,
		method: "GET"
	},
	addDictionary: {
		urlModel: "/",
		url: baseURL,
		method: "POST"
	},
	pushDictionaries: {
		urlModel: "/",
		url: baseURL,
		method: "PATCH"
	},
	updateDictionary: {
		urlModel: "/:dictionaryId",
		url: ({ dictionaryId }) => `${baseURL}/${dictionaryId}`,
		method: "PUT"
	},
	deleteDictionary: {
		urlModel: "/:dictionaryId",
		url: ({ dictionaryId }) => `${baseURL}/${dictionaryId}`,
		method: "DELETE"
	}
});
dictionaryRouter.get(getDictionaryRoutes().getDictionaries.urlModel, require_controllers_dictionary_controller.getDictionaries);
dictionaryRouter.get(getDictionaryRoutes().getDictionariesKeys.urlModel, require_controllers_dictionary_controller.getDictionariesKeys);
dictionaryRouter.get(getDictionaryRoutes().getDictionariesUpdateTimestamp.urlModel, require_controllers_dictionary_controller.getDictionariesUpdateTimestamp);
dictionaryRouter.get(getDictionaryRoutes().getDictionary.urlModel, require_controllers_dictionary_controller.getDictionaryByKey);
dictionaryRouter.post(getDictionaryRoutes().addDictionary.urlModel, require_controllers_dictionary_controller.addDictionary);
dictionaryRouter.patch(getDictionaryRoutes().pushDictionaries.urlModel, require_controllers_dictionary_controller.pushDictionaries);
dictionaryRouter.put(getDictionaryRoutes().updateDictionary.urlModel, require_controllers_dictionary_controller.updateDictionary);
dictionaryRouter.delete(getDictionaryRoutes().deleteDictionary.urlModel, require_controllers_dictionary_controller.deleteDictionary);

//#endregion
exports.dictionaryRoute = dictionaryRoute;
exports.dictionaryRouter = dictionaryRouter;
exports.getDictionaryRoutes = getDictionaryRoutes;
//# sourceMappingURL=dictionary.routes.cjs.map