Fixes route typos.
This commit is contained in:
parent
cb2c884248
commit
eff2818a71
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ class Verify extends App.Controller
|
||||||
params = {}
|
params = {}
|
||||||
params['token'] = @token
|
params['token'] = @token
|
||||||
App.Com.ajax(
|
App.Com.ajax(
|
||||||
id: 'passwort_reset_verify',
|
id: 'password_reset_verify',
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '/api/users/password_reset_verify',
|
url: '/api/users/password_reset_verify',
|
||||||
data: JSON.stringify(params),
|
data: JSON.stringify(params),
|
||||||
|
|
|
@ -4,7 +4,7 @@ module ExtraRoutes
|
||||||
# users
|
# users
|
||||||
map.match '/api/users/search', :to => 'users#search', :via => [:get, :post]
|
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', :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', :to => 'users#index', :via => :get
|
||||||
map.match '/api/users/:id', :to => 'users#show', :via => :get
|
map.match '/api/users/:id', :to => 'users#show', :via => :get
|
||||||
map.match '/api/users', :to => 'users#create', :via => :post
|
map.match '/api/users', :to => 'users#create', :via => :post
|
||||||
|
|
Loading…
Reference in a new issue