mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
updates Getting Started.
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
// <setup>
|
||||
extern crate actix_web;
|
||||
use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer};
|
||||
use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer, Responder};
|
||||
|
||||
fn index(_req: HttpRequest) -> HttpResponse {
|
||||
fn index(_req: HttpRequest) -> impl Responder {
|
||||
HttpResponse::Ok().body("Hello world!")
|
||||
}
|
||||
// </setup>
|
||||
|
Reference in New Issue
Block a user