forked from jmug/stoatchat
chore: refactor generic web server code into quark
This commit is contained in:
9
crates/quark/src/web/swagger.rs
Normal file
9
crates/quark/src/web/swagger.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use rocket::Route;
|
||||
|
||||
pub fn routes() -> Vec<Route> {
|
||||
rocket_okapi::swagger_ui::make_swagger_ui(&rocket_okapi::swagger_ui::SwaggerUIConfig {
|
||||
url: "../openapi.json".to_owned(),
|
||||
..Default::default()
|
||||
})
|
||||
.into()
|
||||
}
|
||||
Reference in New Issue
Block a user