Refactor and add tests for category editing

This commit is contained in:
Robin Ward
2015-07-02 12:06:24 -04:00
parent 2d2e2b9924
commit 23daa9d8ce
6 changed files with 37 additions and 14 deletions

View File

@ -119,6 +119,11 @@ export default function() {
this.get('/users/:username/staff-info.json', () => response({}));
this.put('/categories/:category_id', function(request) {
const category = parsePostData(request.requestBody);
return response({category});
});
this.get('/draft.json', function() {
return response({});
});