feat: deep link added

This commit is contained in:
2026-09-02 10:30:02 +03:30
parent 3f3b5b1d69
commit a3cda12560
9 changed files with 256 additions and 11 deletions
+7
View File
@@ -1,7 +1,14 @@
<?php
use App\Http\Controllers\CategoryController;
use App\Http\Controllers\MediaController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
// Canonical deep links (e.g. https://aramejan.com/media/3). Served as JSON so
// the mobile app / web can fetch the hidden item reached through the deep link.
Route::get('/media/{id}', [MediaController::class, 'publicShow']);
Route::get('/category/{id}', [CategoryController::class, 'publicShow']);