mirror of https://github.com/rwf2/Rocket.git
Fix fairing naming in database MySQL example.
This commit is contained in:
parent
7cf8b1368f
commit
3690412aba
|
@ -90,7 +90,7 @@ async fn destroy(mut db: Connection<Db>) -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn stage() -> AdHoc {
|
pub fn stage() -> AdHoc {
|
||||||
AdHoc::on_ignite("Diesel SQLite Stage", |rocket| async {
|
AdHoc::on_ignite("Diesel MySQL Stage", |rocket| async {
|
||||||
rocket.attach(Db::init())
|
rocket.attach(Db::init())
|
||||||
.mount("/diesel-async", routes![list, read, create, delete, destroy])
|
.mount("/diesel-async", routes![list, read, create, delete, destroy])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue