From 2e0342e82037870fe5c811e86225f5e2da649710 Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Thu, 18 Jul 2024 12:46:31 +0300
Subject: [PATCH] change: Use Scalar as default openapi UI
Fixes: https://git.4rs.nl/OxideTalis/oxidetalis/issues/19
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()
}
}