Removed comments
This commit is contained in:
@@ -8,19 +8,15 @@ use image::GenericImage;
|
||||
use serde::Deserialize;
|
||||
use std::io::{Cursor, Write};
|
||||
use tower_http::services::ServeFile;
|
||||
use tracing_subscriber::field::debug;
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
// initialize tracing
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
// build our application with a route
|
||||
let app = Router::new()
|
||||
// `GET /` goes to `root`
|
||||
.route_service("/", ServeFile::new("assets/index.html"))
|
||||
.route_service("/logo.svg", ServeFile::new("assets/logo.svg"))
|
||||
.route("/api/generate", post(download_zip));
|
||||
|
||||
// run our app with hyper, listening globally on port 3000
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user