añadido coger el idioma

This commit is contained in:
2024-09-30 11:06:00 +02:00
parent f09d5aeceb
commit 13e3a69cd6
7 changed files with 43 additions and 3 deletions

View File

@ -776,6 +776,15 @@ $routes->group('api', ['filter' => 'jwt'], static function ($routes) {
// ...
});
/*
* --------------------------------------------------------------------
* Translation
* --------------------------------------------------------------------
*/
$routes->group('translate', ['namespace' => 'App\Controllers'], function ($routes) {
$routes->post('getTranslation', 'Language::getTranslation', ['as' => 'getKeys']);
});
$routes->resource('translate', ['namespace' => 'App\Controllers', 'controller' => 'Language', 'except' => '']);
/*