import{auditGetHandler as e}from"../controllers/audit.controller.mjs";import{cancelRecursiveAudit as t,discoverUrls as n,getRecursiveAuditStatus as r,pauseRecursiveAudit as i,resumeRecursiveAudit as a,startRecursiveAudit as o}from"../controllers/recursiveAudit.controller.mjs";const s=`/api/scan`,c=()=>`${process.env.BACKEND_URL}${s}`,l=()=>({scan:{urlModel:`/`,url:c(),method:`GET`},discoverUrls:{urlModel:`/recursive/discover`,url:`${c()}/recursive/discover`,method:`GET`},startRecursive:{urlModel:`/recursive/start`,url:`${c()}/recursive/start`,method:`POST`},getRecursiveStatus:{urlModel:`/recursive/:jobId`,url:({jobId:e})=>`${c()}/recursive/${e}`,method:`GET`},cancelRecursive:{urlModel:`/recursive/:jobId/cancel`,url:({jobId:e})=>`${c()}/recursive/${e}/cancel`,method:`POST`},pauseRecursive:{urlModel:`/recursive/:jobId/pause`,url:({jobId:e})=>`${c()}/recursive/${e}/pause`,method:`POST`},resumeRecursive:{urlModel:`/recursive/:jobId/resume`,url:({jobId:e})=>`${c()}/recursive/${e}/resume`,method:`POST`}}),u=async s=>{s.get(l().scan.urlModel,e),s.get(l().discoverUrls.urlModel,n),s.post(l().startRecursive.urlModel,o),s.get(l().getRecursiveStatus.urlModel,r),s.post(l().cancelRecursive.urlModel,t),s.post(l().pauseRecursive.urlModel,i),s.post(l().resumeRecursive.urlModel,a)};export{s as auditRoute,u as auditRouter,l as getAuditRoutes};
//# sourceMappingURL=audit.routes.mjs.map