mirror of
https://github.com/actix/actix-website
synced 2025-06-27 07:29:02 +02:00
Final fixes before requesting review.
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
// <setup>
|
||||
use actix_web::{web, App, HttpRequest, HttpResponse, HttpServer, Responder};
|
||||
use actix_web::{web, App, HttpResponse, HttpServer, Responder};
|
||||
|
||||
fn index() -> impl Responder {
|
||||
HttpResponse::Ok().body("Hello world!")
|
||||
}
|
||||
|
||||
fn index2(_req: HttpRequest) -> impl Responder {
|
||||
fn index2() -> impl Responder {
|
||||
HttpResponse::Ok().body("Hello world again!")
|
||||
}
|
||||
// </setup>
|
||||
|
Reference in New Issue
Block a user