Skip to content

Instantly share code, notes, and snippets.

@hennevogel
Created August 28, 2015 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hennevogel/86295fdb686a57eeda2e to your computer and use it in GitHub Desktop.
Save hennevogel/86295fdb686a57eeda2e to your computer and use it in GitHub Desktop.
diff --git a/src/api/config/routes.rb b/src/api/config/routes.rb
index 66861c4..3127aea 100644
--- a/src/api/config/routes.rb
+++ b/src/api/config/routes.rb
@@ -281,7 +281,7 @@ OBSApi::Application.routes.draw do
get 'user/autocomplete' => :autocomplete
get 'user/tokens' => :tokens
- post 'user/do_login' => :do_login
+ post 'user/do_login' => :do_login, constraints: cons
get 'configuration/users/:user' => :edit, constraints: cons, as: 'configuration_user'
post 'user/notifications' => :update_notifications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment