From ec0ec98ae6efb9f5a0ff5558f48eff00a1c8187d Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Thu, 18 Jul 2024 12:36:40 +0300
Subject: [PATCH] change: Use Scalar as default openapi UI
Signed-off-by: Awiteb
---
crates/oxidetalis_config/src/defaults.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crates/oxidetalis_config/src/defaults.rs b/crates/oxidetalis_config/src/defaults.rs
index 57047c4..7a9a658 100644
--- a/crates/oxidetalis_config/src/defaults.rs
+++ b/crates/oxidetalis_config/src/defaults.rs
@@ -72,10 +72,10 @@ pub(crate) mod openapi {
"/openapi.json".to_owned()
}
pub const fn viewer() -> types::OpenApiViewer {
- types::OpenApiViewer::SwaggerUi
+ types::OpenApiViewer::Scalar
}
pub fn viewer_path() -> String {
- "/swagger-ui".to_owned()
+ "/scalar-ui".to_owned()
}
}
--
2.45.2