From 1499b0980dcec3512f99e6ff0b2ae50a33956846 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 2 Nov 2015 13:38:18 -0500 Subject: [PATCH] creating route for application SPA --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index ebdc12a..d65b48c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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