fix hooks
This commit is contained in:
parent
6dc28f0c49
commit
b21deccf2d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user