📅  最后修改于: 2022-03-11 15:03:37.542000             🧑  作者: Mango
Rails.application.routes.draw do
namespace :api do
resources :dashboard, only: [:index]
end
root :to => "application#index"
match "*path", to: "application#index", format: false, via: :get
end