import{addTag as e,deleteTag as t,getTags as n,updateTag as r}from"../controllers/tag.controller.mjs";const i=`/api/tag`,a=()=>`${process.env.BACKEND_URL}${i}`,o=()=>({getTags:{urlModel:`/`,url:a(),method:`GET`},addTag:{urlModel:`/`,url:a(),method:`POST`},updateTag:{urlModel:`/:tagId`,url:({tagId:e})=>`${a()}/${e}`,method:`PUT`},deleteTag:{urlModel:`/:tagId`,url:({tagId:e})=>`${a()}/${e}`,method:`DELETE`}}),s=async i=>{i.get(o().getTags.urlModel,n),i.post(o().addTag.urlModel,e),i.put(o().updateTag.urlModel,r),i.delete(o().deleteTag.urlModel,t)};export{o as getTagRoutes,i as tagRoute,s as tagRouter};
//# sourceMappingURL=tags.routes.mjs.map