From 307e4da43bd57c094223d80c3760b9b7087871eb Mon Sep 17 00:00:00 2001 From: gharbat Date: Thu, 31 Aug 2023 23:33:28 +0300 Subject: [PATCH] fix: move the create via swagger file endpoint to the top to avoid routes conflict --- dashboard/routes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/routes/api.php b/dashboard/routes/api.php index e412bcc6c..f0adb65b5 100644 --- a/dashboard/routes/api.php +++ b/dashboard/routes/api.php @@ -26,11 +26,11 @@ Route::get('/copilots', [ChatbotController::class, 'index']); +Route::post('/copilot/swagger', [ChatbotController::class, 'handleSwaggerFile']); Route::get('/copilot/{id}', [ChatbotSettingController::class, 'generalSettings']); Route::delete('/copilot/{id}', [ChatbotSettingController::class, 'deleteBot']); Route::post('/copilot/{id}', [ChatbotSettingController::class, 'generalSettingsUpdate']); Route::get('/copilot/{id}/validator', [OnboardingController::class, 'validator']); -Route::post('/copilot/swagger', [ChatbotController::class, 'handleSwaggerFile']); Route::get('/copilot/swagger/pre-made', [ChatbotController::class, 'handleSwaggerViaPremadeTemplate']);