mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
bump to rc.1
This commit is contained in:
@ -32,7 +32,7 @@ async fn main() -> 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()
|
||||
|
Reference in New Issue
Block a user