HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/demo-telemedicina.teky.com.co/routes/api.php
<?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!
|
*/


// FREE
Route::get('/v1/parameters', 'ParameterController@get');
Route::post('/v1/login', 'Api\LoginApiController@login');
Route::post('/v1/recoverPassword', 'Api\UserApiController@recoverPassword');
Route::post('/v1/signup', 'Api\LoginApiController@signup');
Route::get('/v1/document_types', 'IdentificationTypeController@get');
Route::get('/v1/countries', 'CountryController@getCountries');
Route::get('/v1/states/{country_id}', 'StateController@getStates');
Route::get('/v1/cities/{department_id}', 'CityController@getCities');

Route::get('/test/doc/{id}', 'Api\ExternalAppApiController@getRequestDetail');
// Sexes
Route::get('/v1/sexes', 'Api\SexesApiController@get');


// Se debe eliminar.
Route::group(['middleware' => ['auth:api']], function(){
    Route::get('/user', function(Request $request){
        return $request->user();
    });
    Route::get('get_auth/{id}', 'XMLController@sendHC');

    Route::prefix('v1')->group(function(){

        // User
        Route::get('/find_patient/{document}', 'Api\ExternalAppApiController@findPatient');
        Route::put('/update/profile', 'Api\UserApiController@updateProfile');

        // Request
        Route::post('/create_request', 'Api\ExternalAppApiController@createRequest');
        Route::get('/requests/user/external_app/{take}/{offset}', 'Api\ExternalAppApiController@getMyRequests');
        Route::get('/requests/user/external_app_detail/{id}', 'Api\ExternalAppApiController@getRequestDetail');
        Route::get('/requests/specialties', 'Api\ExternalAppApiController@getSpecialties');
        Route::get('/requests/info_form/{form_id}', 'Api\ExternalAppApiController@getInfoForm');

        // Medicos
        Route::get('/medical/directory', 'Api\UserApiController@getMedicalDirectory');

        // Hospitales
        Route::get('/hospital/directory', 'Api\CenterApiController@getHospitalDirectory');

        // Terms
        Route::get('/terms', 'Api\TermApiController@getActive');
        Route::post('/terms/save', 'Api\UserTermApiController@acceptedByUser');

        // OpenTok
        // Route::get('/videocall/credentials/{host_id}', 'Api\OpenTokApiController@getCredentials');
        // Route::get('/videocall/rooms', 'Api\OpenTokApiController@getSessionsOpenFromUser');
        // Route::put('/videocall/connect', 'Api\OpenTokApiController@updateStatusVideocall');

        // Zoom
        Route::get('/videocall/credentials/{host_id}', 'Api\ZoomApiController@getCredentials');
        Route::get('/videocall/rooms', 'Api\ZoomApiController@getSessionsOpenFromUser');
        Route::put('/videocall/connect', 'Api\ZoomApiController@updateStatusVideocall');

        // Agenda
        Route::get('/agenda/types', 'Api\AgendaApiController@getTypes');
        Route::get('/agenda/dates', 'Api\AgendaApiController@getMyDates');
        Route::post('/agenda/consent/upload/{event_id}', 'AgendaController@uploadConsent');
        Route::get('/getSchedule/{medic_id}', 'Api\AgendaApiController@getScheduleFromMedic');

        // Banner
        Route::get('/banner/list', 'Api\BannerApiController@get');

        //support
        Route::post('/pqrs/send', 'PqrsController@create');

        // Insurances.
        Route::get('/insurances', 'Api\InsuranceApiController@get');

        // Medics
        Route::get('/medics/specialty/form/{form_id}', 'Api\MedicApiController@get');

        // Treatments
        Route::get('/treatments', 'TreatmentController@getTreatments');

        // Payment Gateway
        Route::get('/payment_gateway', 'PaymentGatewayController@getPaymentGateway');

    });

    Route::prefix('hc_externa')->group(function () {

        // === XMLController        === ////
        // JSON
        Route::get('get/json/{id}', 'XMLController@sendHCJSON');
        // Se envia en formato XML la historia indicada por el ID.
        Route::get('get/{id}', 'XMLController@sendHC');
        // Retorna las historias pendientes por sincronizar.
        Route::get('pending', 'XMLController@getPendingHC');
        // Actualizar HC con nuevo Identificador de SAP.
        Route::put('handshakeSync', 'XMLController@handshakeSync');

        // Estructura documento de especialidad
        Route::get('get/structure/specialty/{id}', 'StructureController@getStructureBySpecialty');
        
        // Estrucutra tabla
        Route::get('get/structure/{name}', 'StructureController@getStructureByName');

    });

});