Skip to content
Snippets Groups Projects
Commit ac86cd30 authored by Jeroen Nijhof's avatar Jeroen Nijhof
Browse files

Add status/api which render json by default

parent b0a49123
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -4,4 +4,8 @@ class StatusController < ApplicationController
def index
@stats = get_checkmk_json
end
def api
@stats = get_checkmk_json
render json: @stats
end
end
Rails.application.routes.draw do
get 'status/index'
get 'status/api'
 
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment