Re-institute /app/* catch all routing now that /app-resources is a thing.

pull/277/head
Rick Carlino 2016-09-26 15:19:52 -05:00
parent b0997d6f84
commit c8c5a9f145
3 changed files with 4 additions and 20 deletions

View File

@ -20,3 +20,4 @@ FarmBot::Application.configure do
user_name: ENV['MANDRILL_USERNAME'],
password: ENV['MANDRILL_APIKEY'] }
end

View File

@ -18,25 +18,9 @@ FarmBot::Application.routes.draw do
# Routes for the single page Javascript app.
# get "/app/*", to: 'dashboard#index', as: :dashboard
[
"app/login",
"app/dashboard",
"app/dashboard/*",
"app/designer",
"app/designer/*",
"app/controls",
"app/controls/*",
"app/devices",
"app/devices/*",
"app/sequences",
"app/sequences/*",
"app/regimens",
"app/regimens/*",
"app/controls",
"app/controls/*"
].each{ |p| match p, to: 'dashboard#index', via: :get }
# Routes for the single page Javascript app.
get "/app", to: 'dashboard#index', as: :dashboard
match "/app/*path", to: 'dashboard#index', via: :all
end

View File

@ -12,4 +12,3 @@ npm install -g webpack 2>&1
npm install i18n-webpack-plugin -g 2>&1
npm install 2>&1
npm run build 2>&1