diff --git a/config.default.json b/config.default.json
index b4e5990..a555c18 100644
--- a/config.default.json
+++ b/config.default.json
@@ -1,4 +1,5 @@
{
+ "aowowUrl": "https://wotlkdb.com",
"realms": [
{
"name": "AzerothCore",
diff --git a/src/armory/Armory.ts b/src/armory/Armory.ts
index a3fe21e..86608fc 100644
--- a/src/armory/Armory.ts
+++ b/src/armory/Armory.ts
@@ -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));
diff --git a/src/armory/Config.ts b/src/armory/Config.ts
index 783673b..b984cbf 100644
--- a/src/armory/Config.ts
+++ b/src/armory/Config.ts
@@ -15,6 +15,7 @@ export interface IRealmConfig {
}
export class Config {
+ public aowowUrl: string;
public realms: IRealmConfig[];
public worldDatabase: IDatabaseConfig;
diff --git a/static/character.html b/static/character.html
index 3728cd2..d9063c0 100644
--- a/static/character.html
+++ b/static/character.html
@@ -1,7 +1,18 @@
+
-
+
+
+Back to Armory