Files
lichterei-web/kirby/config/api/routes/translations.php
Bastian Allgeier 01277f79f2 first version
2019-01-13 23:17:34 +01:00

25 lines
486 B
PHP
Executable File

<?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);
}
]
];