1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

bump to rc.1

This commit is contained in:
Rob Ede
2022-02-02 00:44:58 +00:00
parent 61fc66c5e5
commit c960da6bdb
25 changed files with 122 additions and 369 deletions

View File

@ -51,7 +51,7 @@ async fn main() -> std::io::Result<()> {
// register simple handler, handle all methods
.service(web::resource("/index.html").to(index))
// with path parameters
.service(web::resource("/").route(web::get().to(|| {
.service(web::resource("/").route(web::get().to(|| async {
HttpResponse::Found()
.append_header(("LOCATION", "/index.html"))
.finish()