%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/klinisol/klinisol-api/routes/api/app/
Upload File :
Create Path :
Current File : /var/www/html/klinisol/klinisol-api/routes/api/app/v1.php

<?php

use Illuminate\Support\Facades\Route;

Route::get('departments', 'DepartmentController@index')
     ->name('api.app.v1.department.index');

Route::group(['middleware' => ['set_database_connection']], function () {
    Route::post('patient/actions/sendCode', 'PatientAuthController@sendCode')
         ->name('api.v1.patient.sendCode');

    Route::post('patient/actions/confirmCode', 'PatientAuthController@confirmCode')
         ->name('api.v1.patient.confirmCode');
    Route::get('questions/action/show', 'QuestionController@show')
         ->name('api.app.v1.questions.show');

    Route::group(['middleware' => ['auth:patient'], 'prefix' => 'patient'], function () {
        Route::get('me', 'PatientController@me')
             ->name('api.app.v1.patient.me');
        Route::post('chat/actions/generateAccessToken', 'ChatController@generateAccessToken')
             ->name('api.app.v1.chat.actions.generateAccessToken');
        Route::get('action/getProtocols', 'PatientController@getProtocols')
             ->name('api.app.v1.patient.getProtocols');
        Route::get('protocol/{id}/action/getDocumentPreview', 'PatientController@getDocumentPreview')
             ->name('api.app.v1.protocol.getDocumentPreview');
        Route::POST('protocol/{id}/action/startSignProcess', 'PatientController@startSignProcess')
             ->name('api.app.v1.protocol.startSignProcess');
    });

    Route::group(['middleware' => ['auth:api', 'user_enabled'], 'prefix' => 'doctor'], function () {
        Route::group(['middleware' => ['role:doctor']], function () {
            Route::get('me', 'AuthController@doctorMe')
                 ->name('api.app.v1.doctor.me');
            Route::put('profile', 'AuthController@doctorUpdateProfile')
                 ->name('api.app.v1.doctor.updateProfile');
            Route::post('changePassword', 'AuthController@doctorChangePassword')
                 ->name('api.app.v1.doctor.changePassword');
            Route::get('protocol', 'DoctorController@getAllProtocols')
                 ->name('api.app.v1.doctor.protocols');
            Route::get('protocol/{id}/actions/getAllPatients', 'DoctorController@getAllPatients')
                 ->name('api.app.v1.doctor.getAllPatients');
            Route::get('protocol/{id}/action/getQuestions', 'QuestionController@getAllQuestions')
                 ->name('api.app.v1.protocol.getQuestions');
            Route::get('protocol/{id}/action/getMedia', 'DoctorController@getMedia')
                 ->name('api.app.v1.protocol.getMedia');
            Route::post('questions/action/submit', 'QuestionController@submit')
                 ->name('api.app.v1.questions.submit');

            Route::post('questions/action/startSignProcess', 'QuestionController@startSignProcess')
                 ->name('api.app.v1.questions.action.startSignProcess');

            Route::get('icds/action/getAllQuestions', 'IcdQuestionController@getAllQuestions')
                 ->name('api.app.v1.icds.actions.getQuestions');
            Route::post('icd_questions/action/submit', 'IcdQuestionController@submit')
                 ->name('api.app.v1.icd_questions.submit');

            Route::post('icds/action/startSignProcess', 'IcdQuestionController@startSignProcess')
                 ->name('api.app.v1.icds.action.startSignProcess');

            Route::post('enrollments', 'EnrollmentController@store')
                 ->name('api.app.v1.enrollments');

            Route::post('enrollments/action/startSignProcess', 'EnrollmentController@startSignProcess')
                 ->name('api.app.v1.enrollments.action.startSignProcess');
        });
    });
});

Zerion Mini Shell 1.0