mirror of
https://github.com/actix/actix-web.git
synced 2024-11-05 16:39:36 +00:00
update readme
This commit is contained in:
parent
5901f0f9f5
commit
663492407d
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,9 @@ fn main() {
|
||||||
|
|
||||||
// start http server
|
// start http server
|
||||||
HttpServer::new(
|
HttpServer::new(
|
||||||
// create routing map with `MyRoute` route
|
// create routing map
|
||||||
RoutingMap::default()
|
RoutingMap::default()
|
||||||
|
// handler for "GET /"
|
||||||
.resource("/", |r|
|
.resource("/", |r|
|
||||||
r.handler(Method::GET, |req, payload, state| {
|
r.handler(Method::GET, |req, payload, state| {
|
||||||
httpcodes::HTTPOk
|
httpcodes::HTTPOk
|
||||||
|
@ -62,6 +63,5 @@ fn main() {
|
||||||
});
|
});
|
||||||
|
|
||||||
system.run();
|
system.run();
|
||||||
println!("Done");
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue