mirror of
https://github.com/actix/examples
synced 2024-11-27 16:02:57 +01:00
fmt
This commit is contained in:
parent
57f5605f3f
commit
e1d124c0e3
@ -77,7 +77,6 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
log::info!("starting HTTP server at http://localhost:8080");
|
||||
|
||||
|
||||
// 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
|
||||
// authentication cookies for any user!
|
||||
|
@ -93,7 +93,6 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
log::info!("starting HTTP server at http://localhost:8080");
|
||||
|
||||
|
||||
HttpServer::new(move || {
|
||||
App::new().service(web::resource("/something").route(web::get().to(do_something)))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user