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.
put('/:id', scope: :private) do
body service(:hooks).update(params)
body service(:hooks).update(params[:hook])
end
end
end

View File

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