Mitgliederladen/backend/web.rs

9 lines
247 B
Rust
Raw Normal View History

2023-07-16 21:33:14 +02:00
HttpServer::new(move || {
App::new()
.service(
SwaggerUi::new("/swagger-ui/{_:.*}")
.url("/api-docs/openapi.json", ApiDoc::openapi()),
)
})
.bind((Ipv4Addr::UNSPECIFIED, 8000)).unwrap()
.run();