Ghost/core
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
..
client@b9d9c368ab Updated Ghost-Admin to 2.21.0 2019-04-23 11:34:46 +02:00
server Exported raw middleware from serve-public-file 2019-04-24 12:46:00 +02:00
test Restructured theme check logic 2019-04-22 22:34:12 +02:00
index.js