change: Use Scalar as default openapi UI
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
8021b15f41
commit
ec0ec98ae6
1 changed files with 2 additions and 2 deletions
|
@ -72,10 +72,10 @@ pub(crate) mod openapi {
|
||||||
"/openapi.json".to_owned()
|
"/openapi.json".to_owned()
|
||||||
}
|
}
|
||||||
pub const fn viewer() -> types::OpenApiViewer {
|
pub const fn viewer() -> types::OpenApiViewer {
|
||||||
types::OpenApiViewer::SwaggerUi
|
types::OpenApiViewer::Scalar
|
||||||
}
|
}
|
||||||
pub fn viewer_path() -> String {
|
pub fn viewer_path() -> String {
|
||||||
"/swagger-ui".to_owned()
|
"/scalar-ui".to_owned()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue