1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
This commit is contained in:
Rob Ede 2022-03-07 13:34:59 +00:00
parent 57f5605f3f
commit e1d124c0e3
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 2 additions and 4 deletions

View File

@ -77,7 +77,6 @@ async fn main() -> std::io::Result<()> {
log::info!("starting HTTP server at http://localhost:8080"); log::info!("starting HTTP server at http://localhost:8080");
// Generate a random 32 byte key. Note that it is important to use a unique // Generate a random 32 byte key. Note that it is important to use a unique
// private key for every project. Anyone with access to the key can generate // private key for every project. Anyone with access to the key can generate
// authentication cookies for any user! // authentication cookies for any user!

View File

@ -93,7 +93,6 @@ async fn main() -> std::io::Result<()> {
log::info!("starting HTTP server at http://localhost:8080"); log::info!("starting HTTP server at http://localhost:8080");
HttpServer::new(move || { HttpServer::new(move || {
App::new().service(web::resource("/something").route(web::get().to(do_something))) App::new().service(web::resource("/something").route(web::get().to(do_something)))
}) })