1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Set version to v1.1.0 and update dependencies

This commit is contained in:
NG (Graham)
2025-12-22 19:40:34 -05:00
parent d9f24e1859
commit 36100a34c4
6 changed files with 521 additions and 254 deletions

View File

@@ -35,18 +35,18 @@ async fn main() -> std::io::Result<()> {
let internal_auth = actix_web::web::Data::new(crate::robocraft::intercom::IntercomAuth::new(&cli_args.data_robocraft)?);
let user_registry = actix_web::web::Data::new(crate::robocraft::intercom::Users::new());
let mut handlebars = handlebars::Handlebars::new();
handlebars
let mut handlebars_conf = handlebars::Handlebars::new();
let mut dir_conf = handlebars::DirectorySourceOptions::default();
dir_conf.tpl_extension = ".html.hbs".to_owned();
dir_conf.hidden = false;
dir_conf.temporary = false;
handlebars_conf
.register_templates_directory(
std::path::PathBuf::from(&cli_args.assets_robocraft).parent().expect("Bad robocraft asset path").join("templates"),
handlebars::DirectorySourceOptions {
tpl_extension: ".html.hbs".to_owned(),
hidden: false,
temporary: false,
},
dir_conf,
)
.unwrap();
let handlebars_ref = actix_web::web::Data::new(handlebars);
let handlebars_ref = actix_web::web::Data::new(handlebars_conf);
HttpServer::new(move || {
App::new()