mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-20 08:03:22 +02:00
- rename podlibre to adaures - rename castopod-host to castopod - simplify README and redirect to docs site - move INSTALL and UPDATE docs - add new gitlabci pipeline to deploy docs - upgrade node to v16 in Dockerfile
29 lines
591 B
PHP
29 lines
591 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @copyright 2020 Ad Aures
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
namespace App\Controllers;
|
|
|
|
use App\Models\PlatformModel;
|
|
use CodeIgniter\Controller;
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
|
|
|
/*
|
|
* Provide public access to all platforms so that they can be exported
|
|
*/
|
|
class PlatformController extends Controller
|
|
{
|
|
public function index(): ResponseInterface
|
|
{
|
|
$model = new PlatformModel();
|
|
|
|
return $this->response->setJSON($model->getPlatforms());
|
|
}
|
|
}
|