1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 15:07:42 +02:00

docs(web): unmention try_init_service

This commit is contained in:
Rob Ede
2024-08-18 14:33:28 +01:00
parent 4303dd8c37
commit 78ac5cf482
6 changed files with 11 additions and 14 deletions

View File

@ -1,10 +1,10 @@
use actix_http::HttpService;
use actix_server::Server;
use actix_service::map_config;
use actix_web::{dev::AppConfig, get, App};
use actix_web::{dev::AppConfig, get, App, Responder};
#[get("/")]
async fn index() -> &'static str {
async fn index() -> impl Responder {
"Hello, world. From Actix Web!"
}