UX: Move watched words to the Logs section of admin

This commit is contained in:
Neil Lalonde
2017-07-31 17:06:26 -04:00
parent ce27783da4
commit ec85b41078
9 changed files with 23 additions and 25 deletions

View File

@ -334,12 +334,12 @@ export default function() {
this.post('/admin/badges', success);
this.delete('/admin/badges/:id', success);
this.get('/admin/watched_words', () => {
return response(200, fixturesByUrl['/admin/watched_words.json']);
this.get('/admin/logs/watched_words', () => {
return response(200, fixturesByUrl['/admin/logs/watched_words.json']);
});
this.delete('/admin/watched_words/:id.json', success);
this.delete('/admin/logs/watched_words/:id.json', success);
this.post('/admin/watched_words.json', request => {
this.post('/admin/logs/watched_words.json', request => {
const result = parsePostData(request.requestBody);
result.id = new Date().getTime();
return response(200, result);