Skip to content
Permalink
Browse files

fix(server): set express's static directory after running user's rout…

…es.js so middleware can be applied to static files
  • Loading branch information
jyounce committed Jun 20, 2016
1 parent b9b94f7 commit 1de65b1be962b31d52f02f2464dece9485c82eea
@@ -1,5 +1,4 @@
# default app middleware
# ======================
module.exports = (server, config) ->
server.app.use server.express.static server.paths.client
server.app.use server.middleware.bodyParser.json() # parse application/json
@@ -0,0 +1,4 @@
# app static files directory
# ==========================
module.exports = (server, config) ->
server.app.use server.express.static server.paths.client
@@ -43,6 +43,7 @@ catch e

# load default app configuration
# ==============================
require('./defaults/app-static-files-dir') server, config
require('./defaults/app-routes') server, config

# run tasks

0 comments on commit 1de65b1

Please sign in to comment.
You can’t perform that action at this time.