feat: sytests

This commit is contained in:
Rudi Floren 2020-05-06 15:36:44 +02:00 committed by timokoesters
parent 8e041f90dd
commit 00a9424719
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
13 changed files with 1339 additions and 36 deletions

View file

@ -75,8 +75,7 @@ fn setup_rocket() -> rocket::Rocket {
],
)
.attach(AdHoc::on_attach("Config", |rocket| {
let hostname = rocket.config().get_str("hostname").unwrap_or("localhost");
let data = Database::load_or_create(&hostname);
let data = Database::load_or_create(&rocket.config());
Ok(rocket.manage(data))
}))