Update the routes for Accounts to use hyphens.
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-31 15:22:07 +03:00
parent 780652241f
commit 31d0e01e95
2 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -32,8 +32,8 @@ defmodule LinkShortenerWeb.Router do
pipe_through :api
scope "/v1", Api.V1, as: :v1 do
post "/users/sign_up", AccountsController, :sign_up
post "/users/sign_in", AccountsController, :sign_in
post "/users/sign-up", AccountsController, :sign_up
post "/users/sign-in", AccountsController, :sign_in
end
end
@@ -41,7 +41,7 @@ defmodule LinkShortenerWeb.Router do
pipe_through [:api, :auth]
scope "/v1", Api.V1, as: :v1 do
post "/users/sign_out", AccountsController, :sign_out
post "/users/sign-out", AccountsController, :sign_out
resources "/links", LinkController
end