diff --git a/lib/habits_web/router.ex b/lib/habits_web/router.ex index 6eb0037..b1ce27a 100644 --- a/lib/habits_web/router.ex +++ b/lib/habits_web/router.ex @@ -5,8 +5,10 @@ defmodule HabitsWeb.Router do plug :accepts, ["json"] end - scope "/api", HabitsWeb do + scope "/", HabitsWeb do pipe_through :api + + resources "/users", UserController, only: [:create] end # Enable LiveDashboard and Swoosh mailbox preview in development