Ghost/core/server/web/shared
Fabien O'Carroll ed1a42f7f3 Exported raw middleware from serve-public-file
no-issue

The current public file middleware handles route matching itself, which
means it is applied to express via the use method. Due to use being a
"global" application of middleware, this means it is not possible to
apply a labs middleware before the public file serving middleware
without it affecting the entire route stack.

This commit exports a piece of raw middleware that can be used with the
get method of express, so that we can attach middleware beforehand.

This will be used to conditionally serve the members specific public
files, based on the labs flag for members.
2019-04-24 12:46:00 +02:00
..
middlewares Exported raw middleware from serve-public-file 2019-04-24 12:46:00 +02:00
index.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
utils.js Refactored web/middleware and web/utils to web/shared (#9892) 2018-09-20 20:04:34 +02:00