Skip to content

Commit

Permalink
fixedroutes etc
Browse files Browse the repository at this point in the history
  • Loading branch information
abbiecoghlan committed Feb 18, 2021
1 parent f542448 commit 4c72e17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def login
if user.try(:authenticate, params[:password])
render json: user
end
render json: user
end


Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
resources :puzzles
resources :users

get "/users", to: "users#login", as: "login"
get "/login", to: "users#login", as: "login"
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end

0 comments on commit 4c72e17

Please sign in to comment.