Fixes route typos.

This commit is contained in:
Martin Edenhofer 2012-11-11 23:51:44 +01:00
parent cb2c884248
commit eff2818a71
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ class Verify extends App.Controller
params = {}
params['token'] = @token
App.Com.ajax(
id: 'passwort_reset_verify',
id: 'password_reset_verify',
type: 'POST',
url: '/api/users/password_reset_verify',
data: JSON.stringify(params),

View file

@ -4,7 +4,7 @@ module ExtraRoutes
# users
map.match '/api/users/search', :to => 'users#search', :via => [:get, :post]
map.match '/api/users/password_reset', :to => 'users#password_reset_send', :via => :post
map.match '/api/users/password_reset_verify', :to => 'users#password_reset_verify', :via => :get
map.match '/api/users/password_reset_verify', :to => 'users#password_reset_verify', :via => :post
map.match '/api/users', :to => 'users#index', :via => :get
map.match '/api/users/:id', :to => 'users#show', :via => :get
map.match '/api/users', :to => 'users#create', :via => :post