0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core
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
..
client Fixed admin navbar icons 2014-05-07 19:47:35 -07:00
clientold Adding READMEs to clarify the 2 client folders 2014-05-07 22:51:51 +01:00
server Refactor API arguments 2014-05-15 10:41:05 +01:00
shared Improving the showdown extensions 2014-03-20 17:08:13 +00:00
test Refactor API arguments 2014-05-15 10:41:05 +01:00
bootstrap.js Add distinct error classes 2014-05-09 12:11:29 +02:00
index.js Add try-catch to startup 2014-05-11 17:33:18 +01:00
server.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00