Ghost/core/server
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
..
api Fix routing of posts and static pages 2013-12-30 02:04:46 -05:00
config Don't allow a subdirectory called Ghost 2013-12-30 01:04:29 +00:00
controllers Fix routing of posts and static pages 2013-12-30 02:04:46 -05:00
data Update import tool to be safe 2013-12-29 13:23:23 +00:00
helpers Merge pull request #1769 from ErisDS/shared-assets 2013-12-28 10:52:24 -08:00
middleware Fix live theme switching not working on subdirectories 2013-12-28 15:08:57 -08:00
models Merge pull request #1759 from hswolff/fix-import-updated-at 2013-12-28 11:41:05 -08:00
permissions Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00
plugins Remove ghost.js 2013-12-07 10:10:02 -05:00
routes Fix routing of posts and static pages 2013-12-30 02:04:46 -05:00
storage Don't allow a subdirectory called Ghost 2013-12-30 01:04:29 +00:00
views Delete all content (posts and tags) 2013-12-25 01:05:20 +01:00
bookshelf-session.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
errorHandling.js Standardize file path access throughout ghost 2013-12-12 21:27:07 -05:00
filters.js This commit removes a lot of code from ghost.js, including: 2013-11-28 09:21:53 -05:00
index.js Adds URL back into theme config 2013-12-26 12:15:10 +00:00
mail.js Fix unhandled errors in mail.js 2013-12-20 12:57:21 +00:00
require-tree.js Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00