move /livez control routes under /api
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user