@@ -10,10 +10,6 @@ const authRoutes = {
1010 requestType : Constants . REQUEST_TYPES . POST ,
1111 uri : "/api/auth/logout"
1212 } ,
13- "invite" : {
14- requestType : Constants . REQUEST_TYPES . POST ,
15- uri : "/api/auth/invite"
16- } ,
1713 "getSelfRoleBindindings" : {
1814 requestType : Constants . REQUEST_TYPES . GET ,
1915 uri : "/api/auth/rolebindings/" + Constants . ROLE_CATEGORIES . SELF
@@ -62,7 +58,7 @@ const accountRoutes = {
6258const hackerRoutes = {
6359 "getSelf" : {
6460 requestType : Constants . REQUEST_TYPES . GET ,
65- uri : "/api/hacker/self/"
61+ uri : "/api/hacker/self/" ,
6662 } ,
6763 "getSelfById" : {
6864 requestType : Constants . REQUEST_TYPES . GET ,
@@ -138,18 +134,30 @@ const sponsorRoutes = {
138134} ;
139135
140136const teamRoutes = {
141- "getSelfById" : {
142- requestType : Constants . REQUEST_TYPES . GET ,
143- uri : "/api/team/" + Constants . ROLE_CATEGORIES . SELF ,
144- } ,
145- "getAnyById" : {
137+ "get" : {
146138 requestType : Constants . REQUEST_TYPES . GET ,
147139 uri : "/api/team/" + Constants . ROLE_CATEGORIES . ALL ,
148140 } ,
149141 "post" : {
150142 requestType : Constants . REQUEST_TYPES . POST ,
151143 uri : "/api/team/" ,
152144 } ,
145+ "join" : {
146+ requestType : Constants . REQUEST_TYPES . PATCH ,
147+ uri : "/api/team/join/" ,
148+ } ,
149+ "patchSelfById" : {
150+ requestType : Constants . REQUEST_TYPES . PATCH ,
151+ uri : "/api/team/" + Constants . ROLE_CATEGORIES . SELF
152+ } ,
153+ "patchAnyById" : {
154+ requestType : Constants . REQUEST_TYPES . PATCH ,
155+ uri : "/api/team/" + Constants . ROLE_CATEGORIES . ALL
156+ } ,
157+ "leave" : {
158+ requestType : Constants . REQUEST_TYPES . PATCH ,
159+ uri : "/api/team/leave/" ,
160+ } ,
153161} ;
154162
155163const volunteerRoutes = {
@@ -159,6 +167,13 @@ const volunteerRoutes = {
159167 } ,
160168} ;
161169
170+ const roleRoutes = {
171+ "post" : {
172+ requestType : Constants . REQUEST_TYPES . POST ,
173+ uri : "/api/role/" ,
174+ }
175+ } ;
176+
162177const searchRoutes = {
163178 "get" : {
164179 requestType : Constants . REQUEST_TYPES . GET ,
@@ -170,7 +185,16 @@ const staffRoutes = {
170185 "hackerStats" : {
171186 requestType : Constants . REQUEST_TYPES . GET ,
172187 uri : "/api/hacker/stats" ,
173- }
188+ } ,
189+ "postInvite" : {
190+ requestType : Constants . REQUEST_TYPES . POST ,
191+ uri : "/api/account/invite"
192+ } ,
193+ "getInvite" : {
194+ requestType : Constants . REQUEST_TYPES . GET ,
195+ uri : "/api/account/invite"
196+ } ,
197+
174198}
175199
176200const allRoutes = {
@@ -180,6 +204,7 @@ const allRoutes = {
180204 "Sponsor" : sponsorRoutes ,
181205 "Team" : teamRoutes ,
182206 "Volunteer" : volunteerRoutes ,
207+ "Role" : roleRoutes ,
183208 "Search" : searchRoutes ,
184209 "Staff" : staffRoutes ,
185210} ;
@@ -217,6 +242,7 @@ module.exports = {
217242 sponsorRoutes : sponsorRoutes ,
218243 teamRoutes : teamRoutes ,
219244 volunteerRoutes : volunteerRoutes ,
245+ roleRoutes : roleRoutes ,
220246 searchRoutes : searchRoutes ,
221247 staffRoutes : staffRoutes ,
222248 allRoutes : allRoutes ,
0 commit comments