mirror of https://github.com/rwf2/Rocket.git
Update examples on site index and overview.
This commit is contained in:
parent
4f3511786c
commit
c49585bb39
|
@ -84,17 +84,17 @@ run`. You should see the following:
|
||||||
```sh
|
```sh
|
||||||
> cargo run
|
> cargo run
|
||||||
🔧 Configured for debug.
|
🔧 Configured for debug.
|
||||||
=> address: 127.0.0.1
|
>> address: 127.0.0.1
|
||||||
=> port: 8000
|
>> port: 8000
|
||||||
=> workers: 64
|
>> workers: [..]
|
||||||
=> log level: normal
|
>> keep-alive: 5s
|
||||||
=> secret key: [zero]
|
>> limits: [..]
|
||||||
=> limits: forms = 32KiB
|
>> tls: disabled
|
||||||
=> cli colors: true
|
>> temp dir: /tmp
|
||||||
=> keep-alive: 5s
|
>> log level: normal
|
||||||
=> tls: disabled
|
>> cli colors: true
|
||||||
🛰 Mounting /:
|
🛰 Routes:
|
||||||
=> GET / (index)
|
>> (index) GET /
|
||||||
🚀 Rocket has launched from http://127.0.0.1:8000
|
🚀 Rocket has launched from http://127.0.0.1:8000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
[release]
|
[release]
|
||||||
version = "0.5.0-dev"
|
version = "0.5.0-dev"
|
||||||
date = "Oct 21, 2020"
|
date = "Apr 13, 2021"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Top features: displayed in the header under the introductory text.
|
# Top features: displayed in the header under the introductory text.
|
||||||
|
@ -55,7 +55,7 @@ code = '''
|
||||||
}
|
}
|
||||||
|
|
||||||
#[launch]
|
#[launch]
|
||||||
fn rocket() -> rocket::Rocket {
|
fn rocket() -> _ {
|
||||||
rocket::build().mount("/", routes![hello])
|
rocket::build().mount("/", routes![hello])
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -142,7 +142,7 @@ function, look like:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#[launch]
|
#[launch]
|
||||||
fn rocket() -> Rocket {
|
fn rocket() -> _ {
|
||||||
rocket::build().mount("/base", routes![index, another])
|
rocket::build().mount("/base", routes![index, another])
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue