import{addDictionary as e,deleteDictionary as t,getDictionaries as n,getDictionariesKeys as r,getDictionariesUpdateTimestamp as i,getDictionaryByKey as a,pushDictionaries as o,updateDictionary as s}from"../controllers/dictionary.controller.mjs";const c=`/api/dictionary`,l=()=>`${process.env.BACKEND_URL}${c}`,u=()=>({getDictionaries:{urlModel:`/`,url:l,method:`GET`},getDictionariesKeys:{urlModel:`/keys`,url:`${l}/keys`,method:`GET`},getDictionariesUpdateTimestamp:{urlModel:`/update`,url:`${l}/update`,method:`GET`},getDictionary:{urlModel:`/:dictionaryKey`,url:({dictionaryKey:e})=>`${l}/${e}`,method:`GET`},addDictionary:{urlModel:`/`,url:l,method:`POST`},pushDictionaries:{urlModel:`/`,url:l,method:`PATCH`},updateDictionary:{urlModel:`/:dictionaryId`,url:({dictionaryId:e})=>`${l}/${e}`,method:`PUT`},deleteDictionary:{urlModel:`/:dictionaryId`,url:({dictionaryId:e})=>`${l}/${e}`,method:`DELETE`}}),d=async c=>{c.get(u().getDictionaries.urlModel,n),c.get(u().getDictionariesKeys.urlModel,r),c.get(u().getDictionariesUpdateTimestamp.urlModel,i),c.get(u().getDictionary.urlModel,a),c.post(u().addDictionary.urlModel,e),c.patch(u().pushDictionaries.urlModel,o),c.put(u().updateDictionary.urlModel,s),c.delete(u().deleteDictionary.urlModel,t)};export{c as dictionaryRoute,d as dictionaryRouter,u as getDictionaryRoutes};
//# sourceMappingURL=dictionary.routes.mjs.map