get shared via route model binding refactoring

This commit is contained in:
Peter Papp
2021-03-15 06:59:39 +01:00
parent cb272709a3
commit 7e3bbe4008
9 changed files with 81 additions and 117 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ Route::get('/invoice/{customer}/{token}', [InvoiceController::class, 'show'])->m
// Get og site for web crawlers
if (Crawler::isCrawler()) {
Route::get('/shared/{token}', [AppFunctionsController::class, 'og_site']);
Route::get('/shared/{shared}', [AppFunctionsController::class, 'og_site']);
} else {
Route::get('/shared/{token}', [ServeSharedController::class, 'index']);
Route::get('/shared/{shared}', [ServeSharedController::class, 'index']);
}
// Show index.blade