0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/api
Jason Williams 9fe573a0c5 Refactor content deletion
- Simplify the `init` method in `models/index.js` so that it no longer
  returns a promise. Easier to use.
- Eliminates the `deleteAllContent` method from `models/index.js` as it
  can all be handled at the API layer in a single spot.
- Optimize `destroyAllContent` in `api/db.js`. Eliminates
  double-fetching every post from the database and converting it to
  JSON. Also only fetches ids from the database instead of the entire
  model.
- Eliminates the custom static method `destroy` in the Post model in
  favor of handling detaching tag relations in a single place (the
  `destroying` event). This also eliminates a big source of unneeded
  database round trips--needing to get post ids to feed into
  `Post.destroy()` which then re-fetches the post again.
2016-03-22 10:10:09 -05:00
..
authentication.js Refactor authentication API into pipeline format 2016-03-07 11:53:54 -06:00
clients.js Harvest server side strings 2015-12-19 12:12:16 +01:00
configuration.js Including timezones API in configuration endpoint 2016-02-24 16:44:01 +02:00
db.js Refactor content deletion 2016-03-22 10:10:09 -05:00
index.js Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
mail.js Refactor mail service 2016-02-10 16:31:42 -06:00
notifications.js Harvest server side strings 2015-12-19 12:12:16 +01:00
posts.js Refactor content deletion 2016-03-22 10:10:09 -05:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
settings.js Harvest server side strings 2015-12-19 12:12:16 +01:00
slugs.js Harvest server side strings 2015-12-19 12:12:16 +01:00
tags.js Harvest server side strings 2015-12-19 12:12:16 +01:00
themes.js Harvest server side strings 2015-12-19 12:12:16 +01:00
upload.js Harvest server side strings 2015-12-19 12:12:16 +01:00
users.js Harvest server side strings 2015-12-19 12:12:16 +01:00
utils.js Harvest server side strings 2015-12-19 12:12:16 +01:00