import{createUser as e,deleteUser as t,getUserByEmail as n,getUserById as r,getUsers as i,updateUser as a,verifyEmailStatusSSE as o}from"../controllers/user.controller.mjs";const s=`/api/user`,c=()=>`${process.env.BACKEND_URL}${s}`,l=()=>({getUsers:{urlModel:`/`,url:c(),method:`GET`},updateUser:{urlModel:`/`,url:c(),method:`PUT`},createUser:{urlModel:`/`,url:c(),method:`POST`},getUserById:{urlModel:`/:userId`,url:({userId:e})=>`${c()}/${e}`,method:`GET`},getUserByEmail:{urlModel:`/email/:email`,url:({email:e})=>`${c()}/email/${e}`,method:`GET`},deleteUser:{urlModel:`/:userId`,url:({userId:e})=>`${c()}/${e}`,method:`DELETE`},verifyEmailStatusSSE:{urlModel:`/verify-email-status/:userId`,url:({userId:e})=>`${c()}/verify-email-status/${e}`,method:`GET`}}),u=async s=>{s.get(l().getUsers.urlModel,i),s.put(l().updateUser.urlModel,a),s.post(l().createUser.urlModel,e),s.get(l().getUserById.urlModel,r),s.get(l().getUserByEmail.urlModel,n),s.delete(l().deleteUser.urlModel,t),s.get(l().verifyEmailStatusSSE.urlModel,o)};export{l as getUserRoutes,s as userRoute,u as userRouter};
//# sourceMappingURL=user.routes.mjs.map