0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core
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
..
client Merge pull request #2909 from novaugust/publish-button-reset 2014-06-08 19:55:10 +02:00
clientold Clean up routes. Use new slug endpoint in admin. 2014-05-28 03:59:06 +00:00
server Upgrade to Express 4.0 2014-06-08 17:41:25 -04:00
shared Improving the showdown extensions 2014-03-20 17:08:13 +00:00
test Uncommenting casper screenshots 2014-06-08 18:50:37 +02:00
bootstrap.js Fix up unit tests. Check config url with isURL. 2014-05-29 21:06:40 +00:00
index.js Add try-catch to startup 2014-05-11 17:33:18 +01:00
server.js