lib/mkit/app/controllers/services_controller.rb in mkit-0.4.2 vs lib/mkit/app/controllers/services_controller.rb in mkit-0.4.3
- old
+ new
@@ -29,9 +29,14 @@
format_response(srv)
end
resp
end
+ get '/services/:id/logs' do
+ srv = find_by_id_or_name
+ srv.log
+ end
+
# curl -X PUT localhost:4567/services/1 -F "file=@mkit/samples/mkit.yml"
put '/services/:id' do
srv = find_by_id_or_name
if params[:file]
tempfile = params[:file][:tempfile]