I've had a Heroku app live for a few months-- checked on it today and it gave an error:
SyntaxError: Unexpected token < in JSON at position 0
The error in the Heroku logs is
ActionController::RoutingError (No route matches [GET] "/"):
Googling hasn't been illuminating, but I'm also confused as to why it stopped working so I'm not certain what to search for other than the error. All the endpoints are working fine. The routes look like this:
Rails.application.routes.draw do get 'teams/index' get 'players/index' resources :players resources :teams resources :trades resources :users resources :votes post '/login', to: 'auth#create' get 'trades/index' delete '/trades/:id', to: 'trades#destroy' end
What's missing?
Rails/Posgres/React
https://stackoverflow.com/questions/66073216/heroku-rails-no-route-matches-get February 06, 2021 at 11:06AM
没有评论:
发表评论