1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 13:10:24 +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

@@ -315,7 +315,7 @@ class ApiServiceProvider extends ServiceProvider
/*
|--------------------------------------------------------------------------
| Extensions
| Administration
|--------------------------------------------------------------------------
*/
@@ -326,6 +326,20 @@ class ApiServiceProvider extends ServiceProvider
$this->action('Flarum\Api\Actions\Extensions\UpdateAction')
);
// Update config settings
$routes->post(
'/config',
'flarum.api.config',
$this->action('Flarum\Api\Actions\ConfigAction')
);
// Update a permission
$routes->post(
'/permission',
'flarum.api.permission',
$this->action('Flarum\Api\Actions\PermissionAction')
);
event(new RegisterApiRoutes($routes));
}