fix: add head request to analytics_hit route

validators break because they can't request the episode's audio files with HEAD
This commit is contained in:
Yassine Doghri 2021-04-08 13:54:05 +00:00
parent b5eb4c68a5
commit f0a2f0bea4
No known key found for this signature in database
GPG Key ID: 3E7F89498B960C9F
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ $routes->group(config('App')->installGateway, function ($routes) {
});
// Route for podcast audio file analytics (/audio/pack(podcast_id,episode_id,bytes_threshold,filesize,duration,date)/podcast_folder/filename.mp3)
$routes->head('audio/(:base64)/(:any)', 'Analytics::hit/$1/$2', [
'as' => 'analytics_hit',
]);
$routes->get('audio/(:base64)/(:any)', 'Analytics::hit/$1/$2', [
'as' => 'analytics_hit',
]);