0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
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
..
adapters Removed superagent dependency (#10535) 2019-03-04 15:59:38 +08:00
api Improved error context usage 2019-04-23 09:45:11 +02:00
apps 🐛 Changed subscribed page title from hardcoded to site title (#10589) 2019-03-11 14:07:37 +08:00
config Removed support for apps from getContentPath 2019-04-16 11:05:33 +02:00
data Changed context used in error to help 2019-04-23 09:31:24 +02:00
helpers Migrated encode, facebook_url and foreach helpers to es6 (#10655) 2019-04-22 17:54:42 +02:00
lib Fixed bug with deleting members after config change 2019-04-24 12:46:00 +02:00
models Updated theme layer to use members-ssr (#10676) 2019-04-16 16:50:25 +02:00
public
services Restructured theme check logic 2019-04-22 22:34:12 +02:00
translations 🐛 Disallowed locked/suspended users from being made owner via the API (#10647) 2019-04-16 10:30:29 +01:00
views
web Exported raw middleware from serve-public-file 2019-04-24 12:46:00 +02:00
analytics-events.js Added event to integrations when created (#10588) 2019-03-11 15:28:17 +01:00
ghost-server.js
index.js
overrides.js
update-check.js Corrected general comment in update check unit 2019-04-17 20:52:50 +02:00