added simple healthcheck route

This commit is contained in:
2023-05-06 15:59:49 +02:00
parent 50bc840510
commit f8ac551423
3 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class HealthcheckController < ApplicationController
unloadable
skip_before_action :check_if_login_required
def index
render :layout => false, :action => 'index'
end
end

View File

@@ -0,0 +1 @@
OK

View File

@@ -1,5 +1,6 @@
if Redmine::Plugin.installed? :baupm_core
RedmineApp::Application.routes.draw do
get '/manifest.json', :controller => 'manifest', :action => 'index', :as => 'manifest_json'
get '/healthcheck', :controller => 'healthcheck', :action => 'index', :as => 'healthcheck'
end
end