Configuracion inicial para usar atentificacion via JWT (requerido tocar el composer para firebase/jwt

This commit is contained in:
imnavajas
2024-09-26 14:01:58 +02:00
parent bd22e89a28
commit 130c5dad88
8 changed files with 271 additions and 11 deletions

View File

@ -755,15 +755,23 @@ $routes->group('chat', ['namespace' => 'App\Controllers\Chat'], function ($route
$routes->get('contact/(:num)/messages', 'ChatController::get_chat_internal_messages/$1', ['as' => 'getChatInternalMessages']);
$routes->get('notifications', 'ChatController::get_chat_cliente/$1', ['as' => 'getChatCliente']);
});
/*
* --------------------------------------------------------------------
* APIs Route Definitions
* --------------------------------------------------------------------
*/
$routes->post('auth/jwt', '\App\Controllers\Sistema\AuthAPIController::jwtLogin');
$routes->group('api', ['filter' => 'jwt'], static function ($routes) {
$routes->get('test', 'Test::echo');
// ...
});
/*
* --------------------------------------------------------------------
* Additional Routing