Files
Sio-Back/routes/api.php
SIO Admin de656b70a2 feat: Actualizacion sistema SIO Backend
- Nuevo modulo de historial de cambios (ServicioHistorial)
- Observer para tracking automatico de cambios en servicios
- Correccion de variables auxiliar en ServiciosController
- Actualizacion de configuraciones y migraciones
- Endpoint para consultar historial de cambios

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 23:01:55 +00:00

93 lines
2.6 KiB
PHP
Executable File

<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
/*Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});*/
Route::post('login','Auth\AuthenticateController@getAccessToken')->middleware('request.log');
Route::get('refresh','Auth\AuthenticateController@refreshAccessToken');
Route::post('recoverpassword', 'Auth\AuthenticateController@recoverPassword');
Route::group(['middleware'=>['jwt']],function(){
Route::post('updatepassword', 'Auth\AuthenticateController@updatePassword');
Route::post('token_firebase', 'Auth\AuthenticateController@tokenFirebase');
// Historial de cambios - sin ACL para acceso general
Route::get('atencionclientes/solicitud_servicios/{servicio_det_id}/historial', 'AtencionClientes\ServiciosController@historial');
});
Route::group(['middleware'=>['jwt', 'acl.sentinel']],function(){
/*
*
* Administrador
* API Administrador
* routes/administrador-routes.php
*/
Route::prefix('administrador')
->namespace('Administrador')
->middleware('request.log')
->group(base_path('routes/administrador-routes.php'));
/*
*
* Atencion a Clientes
* API Atencion a Clientes
* routes/atencion-clientes-routes.php
*/
Route::prefix('atencionclientes')
->namespace('AtencionClientes')
->middleware('request.log')
->group(base_path('routes/atencion-clientes-routes.php'));
/*
*
* Operadores
* API Operadores
* routes/operador-routes.php
*/
Route::prefix('operador')
->namespace('Operador')
->group(base_path('routes/operador-routes.php'));
/*
*
* Reportes
* API Reportes
* routes/reportes-routes.php
*/
Route::prefix('reportes')
->namespace('Reportes')
->middleware('request.log')
->group(base_path('routes/reportes-routes.php'));
/*
*
* Supervisor de operaciones
* API Supervisor de operaciones
* routes/supervisor-operaciones-routes.php
*/
Route::prefix('supervisoroperaciones')
->namespace('SupervisorOperaciones')
->group(base_path('routes/supervisor-operaciones-routes.php'));
});