mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
refactor: add phpstan and update code to adhere to level 5
- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
This commit is contained in:
parent
b691b927fe
commit
231d578d64
148 changed files with 11189 additions and 11421 deletions
26
app/Controllers/PlatformController.php
Normal file
26
app/Controllers/PlatformController.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
* @link https://castopod.org/
|
||||
*/
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
use App\Models\PlatformModel;
|
||||
use CodeIgniter\Controller;
|
||||
|
||||
/*
|
||||
* 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());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue