mirror of
https://github.com/YGGverse/hlstate-rs.git
synced 2026-03-31 17:15:37 +00:00
connect masters
This commit is contained in:
parent
af0c69c4c5
commit
204b64a4f9
3 changed files with 9 additions and 4 deletions
|
|
@ -23,8 +23,10 @@ fn index(meta: &State<Meta>, global: &State<Global>) -> Result<Template, Status>
|
|||
Ok(Template::render(
|
||||
"index",
|
||||
context! {
|
||||
title: &meta.title,
|
||||
masters: &global.masters,
|
||||
servers: servers,
|
||||
title: &meta.title,
|
||||
version: &meta.version,
|
||||
},
|
||||
))
|
||||
}
|
||||
|
|
@ -48,6 +50,7 @@ fn rocket() -> _ {
|
|||
})
|
||||
.manage(Global {
|
||||
format_time: config.format_time,
|
||||
masters: config.masters,
|
||||
})
|
||||
.manage(Meta {
|
||||
description: config.description,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue