import{deleteShowcaseProjectHandler as e,getOtherShowcaseProjects as t,getShowcaseProjectById as n,getShowcaseProjects as r,scanShowcaseProject as i,submitShowcaseProject as a,toggleShowcaseDownvote as o,toggleShowcaseUpvote as s,updateShowcaseProjectHandler as c}from"../controllers/showcaseProject.controller.mjs";const l=`/api/showcase-project`,u=()=>`${process.env.BACKEND_URL}${l}`,d=()=>({getShowcaseProjects:{urlModel:`/`,url:u(),method:`GET`},submitShowcaseProject:{urlModel:`/submit`,url:`${u()}/submit`,method:`POST`},getOtherShowcaseProjects:{urlModel:`/others`,url:`${u()}/others`,method:`GET`},toggleShowcaseUpvote:{urlModel:`/upvote`,url:`${u()}/upvote`,method:`POST`},toggleShowcaseDownvote:{urlModel:`/downvote`,url:`${u()}/downvote`,method:`POST`},getShowcaseProjectById:{urlModel:`/:projectId`,url:({projectId:e})=>`${u()}/${e}`,method:`GET`},scanShowcaseProject:{urlModel:`/:projectId/scan`,url:({projectId:e})=>`${u()}/${e}/scan`,method:`GET`},deleteShowcaseProject:{urlModel:`/:projectId`,url:({projectId:e})=>`${u()}/${e}`,method:`DELETE`},updateShowcaseProject:{urlModel:`/:projectId`,url:({projectId:e})=>`${u()}/${e}`,method:`PATCH`}}),f=async l=>{l.get(d().getShowcaseProjects.urlModel,r),l.post(d().submitShowcaseProject.urlModel,a),l.get(d().getOtherShowcaseProjects.urlModel,t),l.post(d().toggleShowcaseUpvote.urlModel,s),l.post(d().toggleShowcaseDownvote.urlModel,o),l.get(d().getShowcaseProjectById.urlModel,n),l.get(d().scanShowcaseProject.urlModel,i),l.delete(d().deleteShowcaseProject.urlModel,e),l.patch(d().updateShowcaseProject.urlModel,c)};export{d as getShowcaseProjectRoutes,l as showcaseProjectRoute,f as showcaseProjectRouter};
//# sourceMappingURL=showcaseProject.routes.mjs.map