Re-institute /app/* catch all routing now that /app-resources is a thing.
parent
b0997d6f84
commit
c8c5a9f145
|
@ -20,3 +20,4 @@ FarmBot::Application.configure do
|
|||
user_name: ENV['MANDRILL_USERNAME'],
|
||||
password: ENV['MANDRILL_APIKEY'] }
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue