import{authCallback as e,checkConfig as t,getAuthUrl as n,getConfigFile as r,listProjects as i}from"../controllers/gitlab.controller.mjs";const a=`/api/gitlab`,o=()=>`${process.env.BACKEND_URL}${a}`,s=()=>({getAuthUrl:{urlModel:`/auth-url`,url:`${o()}/auth-url`,method:`GET`},authCallback:{urlModel:`/auth`,url:`${o()}/auth`,method:`POST`},listProjects:{urlModel:`/projects`,url:`${o()}/projects`,method:`GET`},checkConfig:{urlModel:`/check-config`,url:`${o()}/check-config`,method:`POST`},getConfigFile:{urlModel:`/get-config-file`,url:`${o()}/get-config-file`,method:`POST`}}),c=async a=>{a.get(s().getAuthUrl.urlModel,n),a.post(s().authCallback.urlModel,e),a.get(s().listProjects.urlModel,i),a.post(s().checkConfig.urlModel,t),a.post(s().getConfigFile.urlModel,r)};export{s as getGitlabRoutes,a as gitlabRoute,c as gitlabRouter};
//# sourceMappingURL=gitlab.routes.mjs.map