peer-group-grading/crates/backend/src/main.rs
2025-03-27 13:06:56 +01:00

17 lines
No EOL
431 B
Rust

use actix_web::{web, App, HttpResponse, HttpServer, middleware::Logger};
mod controller;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
HttpServer::new(|| {
App::new()
.wrap(Logger::default())
.configure(controller::register_controllers)
})
.bind(("0.0.0.0", 8080))?
.run()
.await
}