1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 00:17:31 +02:00

Rough extension management implementation

This commit is contained in:
Toby Zerner
2015-08-03 12:03:30 +09:30
parent 66ee6e57ee
commit 70901b1420
13 changed files with 370 additions and 8 deletions

View File

@@ -313,6 +313,19 @@ class ApiServiceProvider extends ServiceProvider
$this->action('Flarum\Api\Actions\Groups\DeleteAction')
);
/*
|--------------------------------------------------------------------------
| Extensions
|--------------------------------------------------------------------------
*/
// Toggle an extension
$routes->patch(
'/extensions/{name}',
'flarum.api.extensions.update',
$this->action('Flarum\Api\Actions\Extensions\UpdateAction')
);
event(new RegisterApiRoutes($routes));
}