mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
Add ability to uninstall an extension
This commit is contained in:
@@ -306,6 +306,13 @@ class ApiServiceProvider extends ServiceProvider
|
||||
$this->action('Flarum\Api\Actions\Extensions\UpdateAction')
|
||||
);
|
||||
|
||||
// Uninstall an extension
|
||||
$routes->delete(
|
||||
'/extensions/{name}',
|
||||
'flarum.api.extensions.delete',
|
||||
$this->action('Flarum\Api\Actions\Extensions\DeleteAction')
|
||||
);
|
||||
|
||||
// Update config settings
|
||||
$routes->post(
|
||||
'/config',
|
||||
|
Reference in New Issue
Block a user