fix hooks

This commit is contained in:
Sven Fuchs 2012-09-26 12:33:51 +02:00
parent 6dc28f0c49
commit b21deccf2d
2 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,7 @@ class Travis::Api::App
# TODO: Add implementation and documentation. # TODO: Add implementation and documentation.
put('/:id', scope: :private) do put('/:id', scope: :private) do
body service(:hooks).update(params) body service(:hooks).update(params[:hook])
end end
end end
end end

View File

@ -24,8 +24,7 @@ class Travis::Api::App
body service(:user).find_one, type: :user body service(:user).find_one, type: :user
end end
put '/', scope: :private do put '/:id?', scope: :private do
p params
update_locale if valid_locale? update_locale if valid_locale?
'ok' 'ok'
end end