1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00
This commit is contained in:
Rob Ede
2022-03-07 13:34:59 +00:00
parent 57f5605f3f
commit e1d124c0e3
2 changed files with 2 additions and 4 deletions

View File

@ -90,9 +90,8 @@ async fn do_something() -> Result<HttpResponse, Error> {
#[actix_web::main]
async fn main() -> std::io::Result<()> {
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
log::info!("starting HTTP server at http://localhost:8080");
log::info!("starting HTTP server at http://localhost:8080");
HttpServer::new(move || {
App::new().service(web::resource("/something").route(web::get().to(do_something)))