creating route for application SPA

api
Matt Huntington 10 years ago
parent d6aef44e05
commit 1499b0980d

@ -1,6 +1,8 @@
Rails.application.routes.draw do
root 'application#welcome'
get 'application/spa'
resources :transgressions, only: [:index, :create], defaults: { format: :json } do
resources :confessions, only: [:create], shallow: true
end

Loading…
Cancel
Save