Commit 9926b708 authored by Chunchi Che's avatar Chunchi Che

add image service

parent 40c0c315
Pipeline #18130 passed with stages
in 11 minutes and 52 seconds
...@@ -28,7 +28,7 @@ async fn main() -> anyhow::Result<()> { ...@@ -28,7 +28,7 @@ async fn main() -> anyhow::Result<()> {
.with(cors); .with(cors);
// TODO: 模块化 // TODO: 模块化
let images = warp::path!("images").and(warp::fs::dir("./images/")); let images = warp::path("images").and(warp::fs::dir("./images/"));
warp::serve(deck.or(cards).or(images)) warp::serve(deck.or(cards).or(images))
.run(SocketAddr::from_str(SERVE_ADDR)?) .run(SocketAddr::from_str(SERVE_ADDR)?)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment