import{addOrganization as e,addOrganizationMember as t,deleteOrganization as n,getOrganizations as r,selectOrganization as i,unselectOrganization as a,updateOrganization as o,updateOrganizationMembers as s,updateOrganizationMembersById as c}from"../controllers/organization.controller.mjs";const l=`/api/organization`,u=()=>`${process.env.BACKEND_URL}${l}`,d=()=>({getOrganizations:{urlModel:`/`,url:u(),method:`GET`},addOrganization:{urlModel:`/`,url:u(),method:`POST`},updateOrganization:{urlModel:`/`,url:u(),method:`PUT`},updateOrganizationMembers:{urlModel:`/members`,url:`${u()}/members`,method:`PUT`},updateOrganizationMembersById:{urlModel:`/:organizationId/members`,url:({organizationId:e})=>`${u()}/${e}/members`,method:`PUT`},addOrganizationMember:{urlModel:`/member`,url:`${u()}/member`,method:`POST`},deleteOrganization:{urlModel:`/`,url:u(),method:`DELETE`},selectOrganization:{urlModel:`/:organizationId`,url:({organizationId:e})=>`${u()}/${e}`,method:`PUT`},unselectOrganization:{urlModel:`/logout`,url:`${u()}/logout`,method:`POST`}}),f=async l=>{l.get(d().getOrganizations.urlModel,r),l.post(d().addOrganization.urlModel,e),l.put(d().updateOrganization.urlModel,o),l.put(d().updateOrganizationMembers.urlModel,s),l.put(d().updateOrganizationMembersById.urlModel,c),l.post(d().addOrganizationMember.urlModel,t),l.delete(d().deleteOrganization.urlModel,n),l.put(d().selectOrganization.urlModel,i),l.post(d().unselectOrganization.urlModel,a)};export{d as getOrganizationRoutes,l as organizationRoute,f as organizationRouter};
//# sourceMappingURL=organization.routes.mjs.map