| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | class LanguageController |
||
| 26 | { |
||
| 27 | 2 | public function __construct( |
|
| 30 | 2 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Endpoint action to get supported languages. This is for use to choose |
||
| 34 | * what language your frontend application can use within its translations. |
||
| 35 | * |
||
| 36 | * @OA\Response( |
||
| 37 | * response=200, |
||
| 38 | * description="List of language strings.", |
||
| 39 | * @OA\Schema( |
||
| 40 | * type="array", |
||
| 41 | * example={"en","fi"}, |
||
| 42 | * @OA\Items(type="string"), |
||
| 43 | * ), |
||
| 44 | * ) |
||
| 45 | */ |
||
| 46 | 2 | #[Route( |
|
| 55 |