Skip to content

Commit

Permalink
Create two endpoints for startupProbe and readinessProbes (#12836)
Browse files Browse the repository at this point in the history
  • Loading branch information
RachalCassity authored May 30, 2023
1 parent 942eb97 commit aa6c8d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/controllers/v0/example_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@ def welcome
msg = "You are logged in as #{@current_user.email}"
render json: { message: msg }
end

def healthcheck
render status: :ok
end

def startup_healthcheck
render status: :ok
end
end
end
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@
get 'welcome', to: 'example#welcome', as: :welcome
get 'limited', to: 'example#limited', as: :limited
get 'status', to: 'admin#status'
get 'healthcheck', to: 'example#healthcheck', as: :healthcheck
get 'startup_healthcheck', to: 'example#startup_healthcheck', as: :startup_healthcheck

get 'ppiu/payment_information', to: 'ppiu#index'
put 'ppiu/payment_information', to: 'ppiu#update'
Expand Down

0 comments on commit aa6c8d3

Please sign in to comment.