mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
25 lines
552 B
PHP
25 lines
552 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @copyright 2020 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace Analytics\Controllers;
|
|
|
|
use CodeIgniter\Controller;
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
|
|
|
class UnknownUserAgentsController extends Controller
|
|
{
|
|
public function index(int $lastKnownId = 0): ResponseInterface
|
|
{
|
|
$model = model('AnalyticsUnknownUserAgentsModel');
|
|
|
|
return $this->response->setJSON($model->getUserAgents($lastKnownId));
|
|
}
|
|
}
|