api token firebase
This commit is contained in:
@@ -34,7 +34,7 @@ use Modules\Linksehat\Http\Controllers\Api\Doctor\ChatDoctorController;
|
||||
|
||||
Broadcast::routes(['middleware' => ['auth:sanctum']]);
|
||||
Route::prefix('linksehat')->group(function () {
|
||||
|
||||
|
||||
Route::get('dashboard/{query}/{limit?}', [DashboardController::class, 'index']);
|
||||
|
||||
Route::controller(SearchController::class)->group(function () {
|
||||
@@ -44,6 +44,7 @@ Route::prefix('linksehat')->group(function () {
|
||||
|
||||
Route::controller(AuthController::class)->group(function () {
|
||||
Route::post('otp-request', 'otpRequest');
|
||||
Route::post('notification-token', 'notificationToken');
|
||||
Route::post('mock-otp', 'mockOtp');
|
||||
Route::post('login', 'login');
|
||||
Route::post('logout', 'logout');
|
||||
@@ -99,7 +100,7 @@ Route::prefix('linksehat')->group(function () {
|
||||
Route::get('home', 'index')->name('homes.index');
|
||||
Route::get('home/hospital', 'listHospital')->name('homes.listHospital');
|
||||
});
|
||||
|
||||
|
||||
Route::controller(LivechatController::class)->group(function () {
|
||||
Route::get('livechat', 'index')->name('livechats.index');
|
||||
Route::get('livechat/consultation', 'consultation')->name('livechats.consultation');
|
||||
@@ -114,15 +115,14 @@ Route::prefix('linksehat')->group(function () {
|
||||
Route::controller(ChatController::class)->group(function () {
|
||||
Route::post('livechat/send-message', 'sendMessage');
|
||||
Route::get('livechat/get-message', 'getMessage');
|
||||
Route::post('livechat/channel','createChannel');
|
||||
Route::get('livechat/channel','listChannel');
|
||||
Route::get('livechat/{id}/health-sertificate','downloadHealtcare');
|
||||
Route::post('livechat/channel', 'createChannel');
|
||||
Route::get('livechat/channel', 'listChannel');
|
||||
Route::get('livechat/{id}/health-sertificate', 'downloadHealtcare');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::post('create-invoice-duitku', [DuitkuController::class, 'createInvoice']);
|
||||
Route::post('check-status-duitku', [DuitkuController::class, 'checkStatus']);
|
||||
|
||||
});
|
||||
|
||||
Route::post('payment-method-duitku', [DuitkuController::class, 'paymentMethod']);
|
||||
@@ -130,9 +130,9 @@ Route::prefix('linksehat')->group(function () {
|
||||
Route::get('redirect-duitku', [DuitkuController::class, 'redirect']);
|
||||
|
||||
//DOCTOR API
|
||||
Route::prefix('doctor')->group(function() {
|
||||
Route::prefix('doctor')->group(function () {
|
||||
//Version 1.0
|
||||
Route::prefix('v1')->group(function() {
|
||||
Route::prefix('v1')->group(function () {
|
||||
Route::middleware(Authentication::class)->group(function () {
|
||||
Route::controller(AuthDoctorController::class)->group(function () {
|
||||
Route::post('login', 'login');
|
||||
@@ -163,7 +163,6 @@ Route::prefix('linksehat')->group(function () {
|
||||
Route::post('resend-code', 'forgotPassword');
|
||||
Route::post('reset-password', 'resetPassword');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
;});
|
||||
});;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user