mirror of
https://github.com/flarum/core.git
synced 2025-10-19 10:46:06 +02:00
Allow configuring all drivers via frontend (#1169)
This includes an API endpoint for fetching the list of possible drivers and their configuration fields. In the future, this can be extended to include more meta information about each field.
This commit is contained in:
@@ -308,4 +308,11 @@ return function (RouteCollection $map, RouteHandlerFactory $route) {
|
||||
'cache.clear',
|
||||
$route->toController(Controller\ClearCacheController::class)
|
||||
);
|
||||
|
||||
// List available mail drivers and their configuration fields
|
||||
$map->get(
|
||||
'/mail-drivers',
|
||||
'mailDrivers.index',
|
||||
$route->toController(Controller\ListMailDriversController::class)
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user