Handler re-order to satisfy human OCD
This commit is contained in:
parent
4538a3b193
commit
0cd0c8d832
1 changed files with 9 additions and 9 deletions
|
@ -100,34 +100,34 @@ func main() {
|
||||||
|
|
||||||
// All user related routes
|
// All user related routes
|
||||||
// userGroup := api.Group("/user") // Not currently in use
|
// userGroup := api.Group("/user") // Not currently in use
|
||||||
|
api.Get("/users/all", users.ListAllUsers)
|
||||||
|
api.Get("/project/getAllUsers", users.GetAllUsersProject)
|
||||||
api.Post("/login", users.Login)
|
api.Post("/login", users.Login)
|
||||||
api.Post("/register", users.Register)
|
api.Post("/register", users.Register)
|
||||||
api.Post("/loginrenew", users.LoginRenew)
|
api.Post("/loginrenew", users.LoginRenew)
|
||||||
api.Delete("/userdelete/:username", users.UserDelete) // Perhaps just use POST to avoid headaches
|
|
||||||
api.Put("/changeUserName", users.ChangeUserName)
|
|
||||||
api.Get("/users/all", users.ListAllUsers)
|
|
||||||
api.Post("/promoteToAdmin", users.PromoteToAdmin)
|
api.Post("/promoteToAdmin", users.PromoteToAdmin)
|
||||||
api.Get("/project/getAllUsers", users.GetAllUsersProject)
|
api.Put("/changeUserName", users.ChangeUserName)
|
||||||
|
api.Delete("/userdelete/:username", users.UserDelete) // Perhaps just use POST to avoid headaches
|
||||||
|
|
||||||
// All project related routes
|
// All project related routes
|
||||||
// projectGroup := api.Group("/project") // Not currently in use
|
// projectGroup := api.Group("/project") // Not currently in use
|
||||||
api.Get("/getUserProjects", projects.GetUserProjects)
|
api.Get("/getUserProjects", projects.GetUserProjects)
|
||||||
api.Delete("/project/:projectID", projects.DeleteProject)
|
|
||||||
api.Post("/project", projects.CreateProject)
|
|
||||||
api.Get("/project/:projectId", projects.GetProject)
|
api.Get("/project/:projectId", projects.GetProject)
|
||||||
api.Get("/checkIfProjectManager/:projectName", projects.IsProjectManagerHandler)
|
api.Get("/checkIfProjectManager/:projectName", projects.IsProjectManagerHandler)
|
||||||
api.Post("/ProjectRoleChange", projects.ProjectRoleChange)
|
|
||||||
api.Get("/getUsersProject/:projectName", projects.ListAllUsersProject)
|
api.Get("/getUsersProject/:projectName", projects.ListAllUsersProject)
|
||||||
|
api.Post("/project", projects.CreateProject)
|
||||||
|
api.Post("/ProjectRoleChange", projects.ProjectRoleChange)
|
||||||
api.Delete("/removeProject/:projectName", projects.RemoveProject)
|
api.Delete("/removeProject/:projectName", projects.RemoveProject)
|
||||||
|
api.Delete("/project/:projectID", projects.DeleteProject)
|
||||||
|
|
||||||
// All report related routes
|
// All report related routes
|
||||||
// reportGroup := api.Group("/report") // Not currently in use
|
// reportGroup := api.Group("/report") // Not currently in use
|
||||||
api.Get("/getWeeklyReport", reports.GetWeeklyReport)
|
api.Get("/getWeeklyReport", reports.GetWeeklyReport)
|
||||||
api.Post("/submitWeeklyReport", reports.SubmitWeeklyReport)
|
|
||||||
api.Get("/getUnsignedReports/:projectName", reports.GetUnsignedReports)
|
api.Get("/getUnsignedReports/:projectName", reports.GetUnsignedReports)
|
||||||
|
api.Get("/getWeeklyReportsUser/:projectName", reports.GetWeeklyReportsUserHandler)
|
||||||
|
api.Post("/submitWeeklyReport", reports.SubmitWeeklyReport)
|
||||||
api.Put("/signReport/:reportId", reports.SignReport)
|
api.Put("/signReport/:reportId", reports.SignReport)
|
||||||
api.Put("/addUserToProject", projects.AddUserToProjectHandler)
|
api.Put("/addUserToProject", projects.AddUserToProjectHandler)
|
||||||
api.Get("/getWeeklyReportsUser/:projectName", reports.GetWeeklyReportsUserHandler)
|
|
||||||
api.Put("/updateWeeklyReport", reports.UpdateWeeklyReport)
|
api.Put("/updateWeeklyReport", reports.UpdateWeeklyReport)
|
||||||
|
|
||||||
// Announce the port we are listening on and start the server
|
// Announce the port we are listening on and start the server
|
||||||
|
|
Loading…
Reference in a new issue