mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-02 08:57:24 +02:00
- create Admin, Analytics, Auth, Fediverse and Install modules in the root modules/ folder - rename ActivityPub to Fediverse
38 lines
983 B
PHP
38 lines
983 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Install\Config;
|
|
|
|
$routes = service('routes');
|
|
|
|
// Install Wizard routes
|
|
$routes->group(
|
|
config('Install')
|
|
->gateway,
|
|
[
|
|
'namespace' => 'Modules\Install\Controllers',
|
|
],
|
|
function ($routes): void {
|
|
$routes->get('/', 'InstallController', [
|
|
'as' => 'install',
|
|
]);
|
|
$routes->post('instance-config', 'InstallController::attemptInstanceConfig', [
|
|
'as' => 'instance-config',
|
|
]);
|
|
$routes->post('database-config', 'InstallController::attemptDatabaseConfig', [
|
|
'as' => 'database-config',
|
|
]);
|
|
$routes->post('cache-config', 'InstallController::attemptCacheConfig', [
|
|
'as' => 'cache-config',
|
|
]);
|
|
$routes->post(
|
|
'create-superadmin',
|
|
'InstallController::attemptCreateSuperAdmin',
|
|
[
|
|
'as' => 'create-superadmin',
|
|
],
|
|
);
|
|
}
|
|
);
|