feat: add analytics and unknown useragents

This commit is contained in:
Benjamin Bellamy 2020-06-12 20:41:09 +00:00 committed by Yassine Doghri
commit ec92e65aa4
44 changed files with 3333 additions and 1987 deletions

View file

@ -46,6 +46,13 @@ $routes->group('(:podcastSlug)', function ($routes) {
]);
});
// Route for podcast audio file analytics (/stats/podcast_id/episode_id/podcast_folder/filename.mp3)
$routes->add('/stats/(:num)/(:num)/(:any)', 'Analytics::hit/$1/$2/$3');
// Show the Unknown UserAgents
$routes->add('/.well-known/unknown-useragents', 'UnknownUserAgents');
$routes->add('/.well-known/unknown-useragents/(:num)', 'UnknownUserAgents/$1');
/**
* --------------------------------------------------------------------
* Additional Routing