You've already forked baupm-core
added healthcheck
This commit is contained in:
9
app/controllers/healthcheck_controller.rb
Normal file
9
app/controllers/healthcheck_controller.rb
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class ManifestController < ApplicationController
|
||||||
|
unloadable
|
||||||
|
|
||||||
|
skip_before_action :check_if_login_required
|
||||||
|
|
||||||
|
def index
|
||||||
|
render :layout => false, :action => 'index'
|
||||||
|
end
|
||||||
|
end
|
||||||
1
app/views/healthcheck/index.html.erb
Normal file
1
app/views/healthcheck/index.html.erb
Normal file
@@ -0,0 +1 @@
|
|||||||
|
OK
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
if Redmine::Plugin.installed? :baupm_core
|
if Redmine::Plugin.installed? :baupm_core
|
||||||
RedmineApp::Application.routes.draw do
|
RedmineApp::Application.routes.draw do
|
||||||
get '/manifest.json', :controller => 'manifest', :action => 'index', :as => 'manifest_json'
|
get '/manifest.json', :controller => 'manifest', :action => 'index', :as => 'manifest_json'
|
||||||
|
get '/_healthcheck', :controller => 'healthcheck', :action => 'index', :as => 'healthcheck'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user