Ghost/core/server
Harry Wolff 5d028b72fb Upgrade to Express 4.0
no related issue

- Updates package.json packages, adding express middleware packages
 that have been broken into their own modules

- Updates controllers/frontend.js to use the new Layer object that Express 4.0
 has.  Requires some monkey-patching as the Layer object isn't explicitly
 surfaced, however it should be safe to do.

- Moved the setup of routes into middleware/index.js because they need to
 be added as a middleware function before the 404 and 500 handlers. This is
 no longer possible with the old app.use(app.router) as that has been removed.

- Cleaned up middleware/index.js to make it compatible with Express 4.0.

- Simplified the way themes are activated and enabled when they are activated.
 The new handling is simpler, yet should still cover all the use cases that
 previously existed.

- The entire flow of activating a theme through middleware should be a little
 more centralized, letting it be easier to read and maintain.

- Moved every routes/*.js file to use an individual express.Router() instance.
2014-06-08 17:41:25 -04:00
..
api Merge pull request #2876 from halfdan/2833-rasperize-cache 2014-06-05 13:44:22 +01:00
apps correct settings.edit call signature for installedApps 2014-05-24 08:21:17 +02:00
config Refactor API arguments 2014-05-15 10:41:05 +01:00
controllers Upgrade to Express 4.0 2014-06-08 17:41:25 -04:00
data Export backup prior to migration 2014-05-31 18:56:09 -05:00
errors Improve status codes 2014-05-24 08:05:12 +02:00
helpers escapes meta title/description 2014-05-31 11:08:09 -05:00
middleware Upgrade to Express 4.0 2014-06-08 17:41:25 -04:00
models Update slug API to work with additional types 2014-06-04 05:54:03 +00:00
permissions Refactor API arguments 2014-05-15 10:41:05 +01:00
routes Upgrade to Express 4.0 2014-06-08 17:41:25 -04:00
storage Add distinct error classes 2014-05-09 12:11:29 +02:00
views Added error link on 404 pages 2014-06-01 19:02:48 +01:00
api.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00
bookshelf-session.js Upgrade to Express 4.0 2014-06-08 17:41:25 -04:00
filters.js Implement filter context 2014-04-06 15:43:11 +00:00
index.js Upgrade to Express 4.0 2014-06-08 17:41:25 -04:00
mail.js Removed API dependency from mailer and api/mail 2014-06-08 17:41:07 +01:00
middleware.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00
require-tree.js Error handling for require-tree 2014-03-25 22:38:48 +00:00
update-check.js Refactor API arguments 2014-05-15 10:41:05 +01:00
xmlrpc.js Add distinct error classes 2014-05-09 12:11:29 +02:00