feat(config): add aowow url to config file
This commit is contained in:
parent
73916950b7
commit
1a682409a8
7 changed files with 20 additions and 7 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ export interface IRealmConfig {
|
|||
}
|
||||
|
||||
export class Config {
|
||||
public aowowUrl: string;
|
||||
public realms: IRealmConfig[];
|
||||
public worldDatabase: IDatabaseConfig;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue