Ghost/core/server/middleware
Katharina Irrgang 88eab9898c Moved fetching client out of our ghost_head helper (#9180)
refs #8995

- move the getClient lookup from ghost_head into middleware
- use res.locals to keep track of the information (res.locals.client)
- make the middleware global to all frontend routes
- ghost_head: get locals from options.data not this (!)
- adapt lot's of tests
2017-10-26 12:03:53 +02:00
..
api Brute store error is an internal server error (#9092) 2017-10-04 10:02:22 +01:00
validation Dumped icojs and use image-size for .ico (#8888) 2017-08-17 17:44:05 +01:00
brute.js 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
cache-control.js 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
custom-redirects.js Allow Upload/Download of redirects.json (#9029) 2017-09-21 16:01:03 +01:00
error-handler.js 🐛 HTML page error: correct templateData (#9144) 2017-10-13 14:26:42 +01:00
frontend-client.js Moved fetching client out of our ghost_head helper (#9180) 2017-10-26 12:03:53 +02:00
ghost-locals.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
labs.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
log-request.js Added request id header (#9122) 2017-10-09 14:48:32 +02:00
maintenance.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
pretty-urls.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
serve-favicon.js 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
serve-public-file.js 💁🏻 Moveshared/ to server/public (#8273) 2017-04-07 13:21:41 +01:00
static-theme.js New fully-loaded & validated activeTheme concept (#8146) 2017-03-13 21:13:17 +01:00
uncapitalise.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00
url-redirects.js Always use our redirects utility (#9132) 2017-10-12 14:36:50 +02:00