api chat, send summary, health sertificate, callback duitku

This commit is contained in:
2024-05-16 17:12:29 +07:00
parent 8bcc3fe15d
commit 0ac3e4d451
10 changed files with 504 additions and 84 deletions

View File

@@ -107,11 +107,15 @@ Route::prefix('linksehat')->group(function () {
Route::post('livechat/consultation-payment', 'consultation_payment');
});
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/send-message', [ChatController::class, 'sendMessage']);
Route::get('livechat/get-message', [ChatController::class, 'getMessage']);
Route::post('livechat/channel',[ChatController::class, 'createChannel']);
Route::get('livechat/channel',[ChatController::class, 'listChannel']);
Route::post('create-invoice-duitku', [DuitkuController::class, 'createInvoice']);
Route::post('check-status-duitku', [DuitkuController::class, 'checkStatus']);
@@ -142,6 +146,11 @@ Route::prefix('linksehat')->group(function () {
});
Route::controller(ChatDoctorController::class)->group(function () {
Route::get('chat', 'getChat');
Route::post('decline', 'declineChat');
Route::post('approve', 'approveChat');
Route::post('end', 'endChat');
Route::post('summary', 'summaryChat');
Route::get('chat/{id}', 'getChatDetail');
});
});
});