Ghost/core/server/api
Harry Wolff 91ca4a43e5 Fix routing of posts and static pages
closes #1757 and #1773

- switches routes.frontend for posts and pages
to use a regex with two capturing groups.  This removes
the need to dynamically remove an express route at a
later point, leaving the decision making to frontend
controller.

- added unit tests for all routing conditions that 
can arise for posts and pages.

- updated functional tests to also test for same thing
in unit tests

- removes old code from server/api/index that used
to fix this issue, but is no longer needed

- removed some un-needed require statements in routes/admin
2013-12-30 02:04:46 -05:00
..
db.js Fixing notifications on ugly debug page 2013-12-30 00:00:43 +00:00
index.js Fix routing of posts and static pages 2013-12-30 02:04:46 -05:00
notifications.js remove ghost.settings and ghost.notifications 2013-12-06 09:51:35 +01:00
posts.js remove ghost.settings and ghost.notifications 2013-12-06 09:51:35 +01:00
settings.js Adds URL back into theme config 2013-12-26 12:15:10 +00:00
tags.js remove ghost.settings and ghost.notifications 2013-12-06 09:51:35 +01:00
users.js remove ghost.settings and ghost.notifications 2013-12-06 09:51:35 +01:00