1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 16:05:05 +02:00

Move config/permission actions to API; clean up cache flushing

This commit is contained in:
Toby Zerner
2015-08-04 10:40:04 +09:30
parent afe031f269
commit 2e4d38b3e7
10 changed files with 81 additions and 43 deletions

View File

@@ -5,7 +5,7 @@ export default function saveConfig(config) {
return app.request({
method: 'POST',
url: app.forum.attribute('adminUrl') + '/config',
url: app.forum.attribute('apiUrl') + '/config',
data: {config}
}).catch(error => {
app.config = oldConfig;