%PDF- %PDF-
Direktori : /var/www/html/klinisol/klinisol-api/routes/api/ |
Current File : /var/www/html/klinisol/klinisol-api/routes/api/v1.php |
<?php use Illuminate\Support\Facades\Route; Route::post('webhook/docusign', 'DocuSignController@webhook'); Route::post('webhook/twilio/video', 'ChatController@videoWebhook') ->name('api.v1.webhook.twilio.video'); Route::post('subscription', 'SubscriptionController@store'); Route::group(['middleware' => ['set_database_connection']], function () { Route::post('login', 'AuthController@login') ->name('api.v1.login'); Route::post('doctor/login', 'AuthController@doctorLogin') ->name('api.v1.doctor.login'); Route::post('doctor/password/reset', '\App\Http\Controllers\Auth\ResetPasswordController@reset') ->name('api.v1.reset'); Route::post('doctor/password/forgot', '\App\Http\Controllers\Auth\ResetPasswordController@forgot') ->name('api.v1.forgot'); Route::group(['middleware' => ['auth:api', 'user_enabled']], function () { Route::get('me', 'AuthController@me') ->name('api.v1.me'); Route::post('changePassword', 'AuthController@changePassword') ->name('api.v1.changePassword'); Route::put('profile', 'AuthController@updateProfile') ->name('api.v1.updateProfile'); Route::group([], function () { Route::post('chat/actions/generateAccessToken', 'ChatController@generateAccessToken') ->name('api.v1.chat.actions.generateAccessToken'); Route::get('chat', 'ChatController@index') ->name('api.v1.chat.actions.index'); Route::resource('users', 'UserController') ->only([ 'index', 'show', 'store', 'update', 'destroy', ]); Route::post('users/{id}/actions/disable', 'UserController@disable') ->name('api.v1.users.disable'); Route::post('users/{id}/actions/enable', 'UserController@enable') ->name('api.v1.users.enable'); Route::resource('hospital', 'HospitalController') ->only([ 'index', 'show', 'store', 'update', ]); Route::resource('protocol', 'ProtocolController') ->only([ 'index', 'show', 'store', 'update', ]); Route::post('protocol/{id}/actions/disable', 'ProtocolController@disable') ->name('api.v1.protocol.disable'); Route::post('protocol/{id}/actions/enable', 'ProtocolController@enable') ->name('api.v1.protocol.enable'); Route::get('protocol/{id}/actions/getAllQuestions', 'ProtocolController@getAllQuestion') ->name('api.v1.protocol.getAllQuestions'); Route::post('protocol/{id}/actions/upload/protocolData', 'ProtocolController@uploadProtocolData') ->name('api.v1.protocol.upload.protocolData'); Route::post('protocol/{id}/actions/upload/studyPlan', 'ProtocolController@uploadStudyPlan') ->name('api.v1.protocol.upload.studyPlan'); Route::post('protocol/{id}/actions/upload/contactPersonnel', 'ProtocolController@uploadContactPersonnel') ->name('api.v1.protocol.upload.contactPersonnel'); Route::resource('doctor', 'DoctorController') ->only([ 'index', 'show', 'store', 'update', ]); Route::post('doctor/{id}/actions/disable', 'DoctorController@disable') ->name('api.v1.doctor.disable'); Route::post('doctor/{id}/actions/enable', 'DoctorController@enable') ->name('api.v1.doctor.enable'); Route::resource('patient', 'PatientController') ->only([ 'index', 'show', 'store', 'update', ]); Route::resource('questions', 'QuestionController') ->only([ 'index', 'show', 'store', 'update', 'destroy', ]); Route::resource('icds', 'IcdController') ->only([ 'index', 'show', 'show', 'store', ]); Route::post('icds/{id}/actions/publish', 'IcdController@publish') ->name('api.v1.icds.actions.publish'); Route::get('icds/{id}/actions/getAllQuestions', 'IcdController@getAllQuestions') ->name('api.v1.icds.actions.getAllQuestions'); Route::resource('icd_questions', 'IcdQuestionController') ->only([ 'index', 'store', 'update', ]); Route::get('docusign/templates', 'DocuSignController@templates'); }); }); });