(config: config::Config, store: store::Store)
| 120 | } |
| 121 | |
| 122 | pub async fn run(config: config::Config, store: store::Store) { |
| 123 | let routes = build_routes(store).await; |
| 124 | warp::serve(routes).run(([0, 0, 0, 0], config.port)).await; |
| 125 | } |
| 126 | |
| 127 | pub async fn oneshot(store: store::Store) -> OneshotHandler { |
| 128 | let routes = build_routes(store).await; |