Add video engagement tracking and heatmap

This commit is contained in:
2026-07-19 20:13:55 +02:00
parent 4f81164b44
commit a5bf2ac245
9 changed files with 491 additions and 0 deletions
+2
View File
@@ -28,6 +28,8 @@ Route::get('/v1/monthly-views', [HentaiApiController::class, 'getMonthlyViews'])
Route::get('/hentai/{title}', [StreamController::class, 'index'])->name('hentai.index');
Route::post('/player/api', [StreamApiController::class, 'getStream'])->name('hentai.player');
Route::post('/watched/track', [StreamApiController::class, 'trackWatched'])->name('hentai.watched');
Route::post('/player/engagement', [StreamApiController::class, 'trackEngagement'])->name('hentai.engagement');
Route::get('/player/engagement/{episodeId}', [StreamApiController::class, 'getEngagement'])->name('hentai.engagement.data');
// Search
Route::get('/search', [HomeController::class, 'search'])->name('hentai.search');