mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 09:42:57 +01:00
update readme
This commit is contained in:
parent
5901f0f9f5
commit
663492407d
@ -44,8 +44,9 @@ fn main() {
|
||||
|
||||
// start http server
|
||||
HttpServer::new(
|
||||
// create routing map with `MyRoute` route
|
||||
// create routing map
|
||||
RoutingMap::default()
|
||||
// handler for "GET /"
|
||||
.resource("/", |r|
|
||||
r.handler(Method::GET, |req, payload, state| {
|
||||
httpcodes::HTTPOk
|
||||
@ -62,6 +63,5 @@ fn main() {
|
||||
});
|
||||
|
||||
system.run();
|
||||
println!("Done");
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user