mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-27 20:21:59 +02:00
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:
parent
b5eb4c68a5
commit
f0a2f0bea4
@ -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)
|
// 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', [
|
$routes->get('audio/(:base64)/(:any)', 'Analytics::hit/$1/$2', [
|
||||||
'as' => 'analytics_hit',
|
'as' => 'analytics_hit',
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user