move /livez control routes under /api
This commit is contained in:
parent
149b42825f
commit
dc9b8b7cc7
4
app.rb
4
app.rb
@ -326,12 +326,12 @@ get "/livez/uptime" do
|
|||||||
jsonify x
|
jsonify x
|
||||||
end
|
end
|
||||||
|
|
||||||
post "/livez/toggle" do
|
post "/api/livez/toggle" do
|
||||||
Health.instance.toggle
|
Health.instance.toggle
|
||||||
"ok\n"
|
"ok\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
post "/livez/sleep" do
|
post "/api/livez/sleep" do
|
||||||
Sleep.instance.toggle
|
Sleep.instance.toggle
|
||||||
"ok\n"
|
"ok\n"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user