feat(config): add aowow url to config file

This commit is contained in:
Axel Cocat 2022-01-06 22:29:11 +01:00
parent 73916950b7
commit 1a682409a8
7 changed files with 20 additions and 7 deletions

View file

@ -41,6 +41,7 @@ export class Armory {
}
console.log("Starting server...");
app.locals.aowow = this.config.aowowUrl;
app.engine(".html", handlebarsEngine({
extname: "html",
partialsDir: path.join(process.cwd(), "static", "partials"),
@ -62,7 +63,7 @@ export class Armory {
const indexController = new IndexController(this);
app.get("/", indexController.index.bind(indexController));
const charsController = new CharacterController(this);
await charsController.load();
app.get("/character/:realm/:name", charsController.character.bind(charsController));