reading metadata in shared link v0.1

This commit is contained in:
Peter Papp
2020-08-25 12:04:13 +02:00
parent 6f9f2f2d34
commit f3a2758bcc
4 changed files with 19 additions and 7 deletions

View File

@@ -11,10 +11,6 @@
|
*/
// Get og site for web crawlers
if( Crawler::isCrawler()) {
Route::get('/shared/{token}', 'AppFunctionsController@og_site');
}
// Stripe WebHook
Route::post('/stripe/webhook', 'WebhookController@handleWebhook');
@@ -40,6 +36,11 @@ Route::group(['middleware' => ['auth:api', 'auth.master', 'scope:master']], func
Route::get('/invoice/{customer}/{token}', 'Admin\InvoiceController@show');
});
// Pages
Route::get('/shared/{token}', 'Sharing\FileSharingController@index');
// Get og site for web crawlers
if( Crawler::isCrawler()) {
Route::get('/shared/{token}', 'AppFunctionsController@og_site');
} else {
Route::get('/shared/{token}', 'Sharing\FileSharingController@index');
}
Route::get('/{any?}', 'AppFunctionsController@index')->where('any', '.*');