Commit 55ede40d authored by Carl Törnqvist's avatar Carl Törnqvist Committed by Renée Kooi
Browse files

Exclude all choo routes with partials (#445)

parent 89311ddc
......@@ -9,8 +9,9 @@ = function (app) {
module.exports.listRoutes = function (app) {
var keys = getAllRoutes(app.router.router)
if (keys['/:']) delete keys['/:'] // Server rendering partials is tricky.
return Object.keys(keys)
return Object.keys(keys).filter(function (key) {
return !/\/:/.test(key) // Server rendering partials is tricky.
// Do a double render pass - the first time around we wait for promises to be
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment