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