1
0
Files
re_capitulating_queer/kirby/config/api/routes/translations.php
Philip Wagner 78b6c0d381 init
2024-08-31 10:01:49 +02:00

25 lines
396 B
PHP

<?php
/**
* Translations Routes
*/
return [
[
'pattern' => 'translations',
'method' => 'GET',
'auth' => false,
'action' => function () {
return $this->kirby()->translations();
}
],
[
'pattern' => 'translations/(:any)',
'method' => 'GET',
'auth' => false,
'action' => function (string $code) {
return $this->kirby()->translations()->find($code);
}
]
];