Add Suspend User to flags page

This commit is contained in:
Robin Ward
2017-09-14 14:10:39 -04:00
parent 079f108ceb
commit 09ed2ed749
17 changed files with 177 additions and 55 deletions

View File

@ -350,13 +350,21 @@ export default function() {
this.get('/tag_groups', () => response(200, {tag_groups: []}));
this.get('/admin/users/1234.json', request => {
this.get('/admin/users/1234.json', () => {
return response(200, {
id: 1234,
username: 'regular',
});
});
this.get('/admin/users/2.json', () => {
return response(200, {
id: 2,
username: 'sam',
admin: true
});
});
this.post('/admin/users/:user_id/generate_api_key', success);
this.delete('/admin/users/:user_id/revoke_api_key', success);
this.delete('/admin/users/:user_id.json', () => response(200, { deleted: true }));