Ghost/core/server/api
Hannah Wolfe 495eee7747 Use "mounting" concept for active theme (#8193)
no issue

🔥 Remove DIRTY HACK for API
- this is no longer needed, because themes get mounted in every case

 Switch to concept of 'mounted' theme
- check if active theme is mounted
- if not, mount it
- mounting is a function OF the active theme

🎨 Move theme middleware to theme module

🎨 Update theme middleware function names
- update the function names and comments to be more representative of their current functions
- this was pretty old and out of date!

🚨 Fixup tests for middleware
- ensure the objects match what we expect
- based partially on theme docs

Update TODO
2017-03-21 10:03:09 +01:00
..
app.js Move activation to themes endpoint (#8093) 2017-03-08 10:46:03 +00:00
authentication.js 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
clients.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
configuration.js 🔥 remove fileStorage option (#8144) 2017-03-14 10:31:33 +00:00
db.js 🔥 🎨 No more updateSettingsCache (#8090) 2017-03-02 23:00:01 +01:00
index.js Use "mounting" concept for active theme (#8193) 2017-03-21 10:03:09 +01:00
invites.js 🎨 add urlFor('admin') and increase usage of urlFor helper (#7935) 2017-02-02 18:51:35 +00:00
mail.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
notifications.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
posts.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
schedules.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
settings.js Themes API activation permissions & validation (#8104) 2017-03-13 12:44:44 +01:00
slack.js Slack integration 2016-05-08 12:49:15 +02:00
slugs.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
subscribers.js Fixed issue where all only a few subscribers where exported via CSV. (#7925) 2017-02-08 11:37:09 +01:00
tags.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
themes.js 🐛🎨 Theme API minor improvements (#8197) 2017-03-20 19:02:44 +01:00
upload.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
users.js suspend user feature (#8114) 2017-03-13 12:03:26 +00:00
utils.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00