controller refactoring part 24

This commit is contained in:
Peter Papp
2021-07-21 18:46:55 +02:00
parent 54f1f4c9a8
commit 6d8a7a429c
29 changed files with 561 additions and 209 deletions

View File

@@ -1,9 +1,9 @@
<?php
use Domain\Homepage\Controllers\IndexController;
use Domain\Sharing\Controllers\OGSiteController;
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;
@@ -20,7 +20,7 @@ Route::get('/translations/{lang}', CurrentLocalizationController::class);
// Get og site for web crawlers
if (Crawler::isCrawler()) {
Route::get('/share/{shared}', OGSiteController::class);
Route::get('/share/{shared}', WebCrawlerOpenGraphController::class);
} else {
Route::get('/share/{shared}', SharePublicIndexController::class);
}