feat: add logging on server starting (#372)

release-0.0
Meng Zhang 2023-08-28 14:12:00 +08:00 committed by GitHub
parent 65836ee199
commit fc9a623e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ pub async fn main(config: &Config, args: &ServeArgs) {
)
});
info!("Starting server, this might takes a few minutes...");
let app = Router::new()
.merge(SwaggerUi::new("/swagger-ui").url("/api-docs/openapi.json", ApiDoc::openapi()))
.nest("/v1", api_router(args, config))