Skip to content

Commit

Permalink
remove testing endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed Apr 4, 2024
1 parent fbdd9b1 commit 39060e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions app/controllers/index_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ class IndexController < ApplicationController
def index
render plain: ENV["SITE_TITLE"]
end

def show
id = params[:id]
foo = Rails.cache.fetch("wendel/#{id}", expires_in: 1.day) { "cached_wendel_#{id}_test" }
render json: {message: foo}
end
end
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root to: "index#index"

resources :heartbeat, only: [:index]
resources :index, path: "/", only: [:index, :show]
resources :index, path: "/", only: [:index]

# trigger agents
post "agents/crossref", to: "agents#crossref"
Expand Down

0 comments on commit 39060e5

Please sign in to comment.