1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 07:29:02 +02:00

Document actix-web-codegen

This fixes #105
This commit is contained in:
Sven-Hendrik Haase
2019-08-05 18:32:00 +02:00
parent cf666d228b
commit 553fe281fc
2 changed files with 28 additions and 0 deletions

View File

@ -10,6 +10,15 @@ fn index2() -> impl Responder {
}
// </setup>
// <alternative>
use actix_web::get;
#[get("/alternative")]
fn index3() -> impl Responder {
HttpResponse::Ok().body("Sweet syntax!")
}
// </alternative>
// <main>
fn main() {
HttpServer::new(|| {