Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #546 from HackIllinois/asehgal220-change-user-regi…
Browse files Browse the repository at this point in the history
…stration

Update registration.go
  • Loading branch information
Nydauron authored Feb 16, 2023
2 parents 102c788 + f18df44 commit 1213151
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gateway/services/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ var RegistrationRoutes = arbor.RouteCollection{
"/registration/attendee/",
alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.UserRole}), middleware.IdentificationMiddleware).ThenFunc(GetRegistration).ServeHTTP,
},
arbor.Route{
arbor.Route{ // Change back to authtoken.UserRole
"CreateCurrentUserRegistration",
"POST",
"/registration/attendee/",
alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.UserRole}), middleware.IdentificationMiddleware).ThenFunc(CreateRegistration).ServeHTTP,
alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.StaffRole}), middleware.IdentificationMiddleware).ThenFunc(CreateRegistration).ServeHTTP,
},
arbor.Route{
arbor.Route{ // Change back to authtoken.UserRole
"UpdateCurrentUserRegistration",
"PUT",
"/registration/attendee/",
alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.ApplicantRole}), middleware.IdentificationMiddleware).ThenFunc(UpdateRegistration).ServeHTTP,
alice.New(middleware.AuthMiddleware([]authtoken.Role{authtoken.StaffRole}), middleware.IdentificationMiddleware).ThenFunc(UpdateRegistration).ServeHTTP,
},
arbor.Route{
"GetFilteredUserRegistrations",
Expand Down

0 comments on commit 1213151

Please sign in to comment.