mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Refactor and add tests for category editing
This commit is contained in:
@ -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({});
|
||||
});
|
||||
|
Reference in New Issue
Block a user