diff --git a/examples/Cargo.toml b/examples/Cargo.toml index d0f5da1..444f971 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,8 +1,12 @@ [workspace] members = [ "application", - "front-page", + "easy-form-handling", + "flexible-responders", "getting-started", + "main-example", + "powerful-extractors", + "request-routing", "server", "url-dispatch", ] diff --git a/examples/front-page/easy-form-handling/Cargo.toml b/examples/easy-form-handling/Cargo.toml similarity index 100% rename from examples/front-page/easy-form-handling/Cargo.toml rename to examples/easy-form-handling/Cargo.toml diff --git a/examples/front-page/easy-form-handling/src/main.rs b/examples/easy-form-handling/src/main.rs similarity index 91% rename from examples/front-page/easy-form-handling/src/main.rs rename to examples/easy-form-handling/src/main.rs index 406ef8d..168b394 100644 --- a/examples/front-page/easy-form-handling/src/main.rs +++ b/examples/easy-form-handling/src/main.rs @@ -27,8 +27,8 @@ fn main() { .route("/", web::get().to(index)) .route("/register", web::post().to(register)) }) - .bind("127.0.0.1:8000") - .expect("Can not bind to port 8000") + .bind("127.0.0.1:8088") + .unwrap() .run() .unwrap(); } diff --git a/examples/front-page/easy-form-handling/static/form.html b/examples/easy-form-handling/static/form.html similarity index 91% rename from examples/front-page/easy-form-handling/static/form.html rename to examples/easy-form-handling/static/form.html index 08a2570..61ffceb 100644 --- a/examples/front-page/easy-form-handling/static/form.html +++ b/examples/easy-form-handling/static/form.html @@ -6,7 +6,7 @@
-