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:
@ -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
|
||||
|
Reference in New Issue
Block a user