Ghost/core/server/apps
Hannah Wolfe 61bf54ec88 🎉 Middleware refactor: Give the API its own express App (#7537)
refs #4172

* 🎨 Use bodyParser only where it is needed

This is a pretty extreme optimisation, however in the interests of killing middleware/index.js it
seemed prudent to move towards not having in there that wasn't strictly necessary 😁

We should reassess how apps do this sort of thing, but it seems pretty sane to declare bodyParsing
if and only if it is necessary.

* 🎨 Move all API code to API router

* 🎨 Refactor API into an App, not just a router

- Apps have their own rendering engines, only the frontend & the admin panel need views
- The API should be JSON only, with minimal middleware
- Individual sections within the API could/should be treated as Routers

* 🎨 Flatten API middleware inclusion

- get rid of the weird middleware object
- move the api-only middleware into the middleware/api folder
2016-10-11 10:36:00 +02:00
..
amp 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
private-blogging 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
subscribers 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
dependencies.js
index.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
loader.js 🎨 🔦 refactor content paths (images, apps, themes, storage, scheduling) 2016-09-20 15:59:34 +01:00
permissions.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
proxy.js Minor internal apps improvements 2016-04-14 19:05:48 +01:00
sandbox.js 🔥 remove postgres support 2016-09-20 15:59:34 +01:00