Skip to content

Commit

Permalink
Change appropriate routes into admin scope
Browse files Browse the repository at this point in the history
  • Loading branch information
josh1248 committed Sep 8, 2024
1 parent d28d757 commit 18dc689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cadet_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ defmodule CadetWeb.Router do
# The admin route for getting total xp of a specific user
get("/users/:course_reg_id/total_xp", AdminUserController, :combined_total_xp)
put("/users/:course_reg_id/role", AdminUserController, :update_role)
delete("/users/:course_reg_id", AdminUserController, :delete_user)
get("/users/:course_reg_id/goals", AdminGoalsController, :index_goals_with_progress)
post("/users/:course_reg_id/goals/:uuid/progress", AdminGoalsController, :update_progress)

Expand Down Expand Up @@ -235,6 +234,8 @@ defmodule CadetWeb.Router do
AdminGradingController,
:unpublish_all_grades
)

delete("/users/:course_reg_id", AdminUserController, :delete_user)
end

# Other scopes may use custom stacks.
Expand Down

0 comments on commit 18dc689

Please sign in to comment.