2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core/server/apps
Hannah Wolfe c02ebb0dcf Refactor API arguments
closes #2610, refs #2697

- cleanup API index.js, and add docs
- all API methods take consistent arguments: object & options
- browse, read, destroy take options, edit and add take object and options
- the context is passed as part of options, meaning no more .call
  everywhere
- destroy expects an object, rather than an id all the way down to the model layer
- route params such as :id, :slug, and :key are passed as an option & used
  to perform reads, updates and deletes where possible - settings / themes
  may need work here still
- HTTP posts api can find a post by slug
- Add API utils for checkData
2014-05-15 10:41:05 +01:00
..
dependencies.js Install App Dependencies 2014-02-08 16:58:13 -06:00
index.js Refactor API arguments 2014-05-15 10:41:05 +01:00
loader.js AppProxy with permissions checks and app context 2014-04-26 10:38:23 -05:00
permissions.js App Permissions from package.json 2014-04-16 18:14:56 +02:00
proxy.js Refactor API arguments 2014-05-15 10:41:05 +01:00
sandbox.js Replace JSLint with JSHint. 2014-03-04 15:47:39 +00:00