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

Handlers done-ish.

This commit is contained in:
Cameron Dershem
2019-06-20 02:04:22 -04:00
parent 4291b822fc
commit 59f010461a
8 changed files with 62 additions and 79 deletions

View File

@ -1,4 +1,4 @@
// <main>
// <either>
use actix_web::{web, App, Either, Error, HttpRequest, HttpResponse};
use futures::future::{ok, Future};
@ -22,7 +22,7 @@ fn index(_req: HttpRequest) -> RegisterResult {
fn main() {
App::new().route("/", web::get().to(index));
}
// </main>
// </either>
fn is_a_variant() -> bool {
true