refactor(writeapi): update route prefix to api/v3, default error option

This commit is contained in:
Julian Lam
2020-10-07 11:14:37 -04:00
parent f67824719c
commit 3ea1aa4780
29 changed files with 70 additions and 68 deletions

View File

@@ -183,7 +183,7 @@ define('forum/topic/threadTools', [
const method = command === 'restore' ? 'put' : 'del';
const suffix = command !== 'purge' ? '/state' : '';
api[method](`/topics/${tid}${suffix}`, undefined, undefined, err => app.alertError(err.status.message));
api[method](`/topics/${tid}${suffix}`, undefined, undefined, 'default');
});
});
}