castopod/modules/Analytics/Controllers/UnknownUserAgentsController.php
Yassine Doghri 5083cd2fda refactor(modules): extract castopod parts into a modules/ folder for a scalable HMVC structure
- create Admin, Analytics, Auth, Fediverse and Install modules in the root modules/ folder
- rename
ActivityPub to Fediverse
2021-12-29 11:54:22 +00:00

25 lines
560 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 Modules\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));
}
}