mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-31 07:44:43 +00:00
Setup Wizard middleware implemented
This commit is contained in:
+13
-8
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Domain\SetupWizard\Controllers\CreateAdminAccountController;
|
||||
use Domain\SetupWizard\Controllers\StorePlansController;
|
||||
use Domain\SetupWizard\Controllers\StoreBillingsController;
|
||||
use Domain\SetupWizard\Controllers\StoreAppSettingsController;
|
||||
@@ -8,11 +9,15 @@ use Domain\SetupWizard\Controllers\StoreDatabaseCredentialsController;
|
||||
use Domain\SetupWizard\Controllers\StoreEnvironmentSettingsController;
|
||||
use Domain\SetupWizard\Controllers\StoreSubscriptionServiceCredentialsController;
|
||||
|
||||
// TODO: create middleware for setup wizard protection after successful installation
|
||||
Route::post('/stripe-credentials', StoreSubscriptionServiceCredentialsController::class);
|
||||
Route::post('/environment-setup', StoreEnvironmentSettingsController::class);
|
||||
Route::post('/database', StoreDatabaseCredentialsController::class);
|
||||
Route::post('/purchase-code', VerifyPurchaseCodeController::class);
|
||||
Route::post('/stripe-billings', StoreBillingsController::class);
|
||||
Route::post('/app-setup', StoreAppSettingsController::class);
|
||||
Route::post('/stripe-plans', StorePlansController::class);
|
||||
Route::group(['prefix' => 'api/setup'], function () {
|
||||
Route::post('/stripe-credentials', StoreSubscriptionServiceCredentialsController::class);
|
||||
Route::post('/environment-setup', StoreEnvironmentSettingsController::class);
|
||||
Route::post('/database', StoreDatabaseCredentialsController::class);
|
||||
Route::post('/purchase-code', VerifyPurchaseCodeController::class);
|
||||
Route::post('/stripe-billings', StoreBillingsController::class);
|
||||
Route::post('/app-setup', StoreAppSettingsController::class);
|
||||
Route::post('/stripe-plans', StorePlansController::class);
|
||||
});
|
||||
|
||||
Route::post('/admin-setup', CreateAdminAccountController::class)
|
||||
->middleware('web');
|
||||
|
||||
@@ -5,12 +5,8 @@ use Domain\Invoices\Controllers\AdminInvoiceController;
|
||||
use Domain\Sharing\Controllers\SharePublicIndexController;
|
||||
use Domain\Sharing\Controllers\WebCrawlerOpenGraphController;
|
||||
use Domain\Subscriptions\Controllers\StripeWebhookController;
|
||||
use Domain\SetupWizard\Controllers\CreateAdminAccountController;
|
||||
use Domain\Localization\Controllers\CurrentLocalizationController;
|
||||
|
||||
// Setup Wizard
|
||||
Route::post('/admin-setup', CreateAdminAccountController::class);
|
||||
|
||||
// Subscription Services
|
||||
Route::post('/stripe/webhook', [StripeWebhookController::class, 'handleWebhook']);
|
||||
Route::get('/invoice/{customer}/{token}', [AdminInvoiceController::class, 'show'])->middleware(['auth:sanctum']);
|
||||
|
||||
Reference in New Issue
Block a user