Rails.application.routes.draw do # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html get '/metric/', to: 'metrics#index' post '/metric/:key', to: 'metrics#create' delete '/metric/:key', to: 'metrics#delete' # Defines the root path route ("/") # root "articles#index" end