import{authCallback as e,checkConfig as t,getAuthUrl as n,getConfigFile as r,listRepos as i}from"../controllers/github.controller.mjs";const a=`/api/github`,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`},listRepos:{urlModel:`/repos`,url:`${o()}/repos`,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().listRepos.urlModel,i),a.post(s().checkConfig.urlModel,t),a.post(s().getConfigFile.urlModel,r)};export{s as getGithubRoutes,a as githubRoute,c as githubRouter};
//# sourceMappingURL=github.routes.mjs.map