feat: use character data from database
This commit is contained in:
parent
028d0390f4
commit
ac26336bc3
16 changed files with 159543 additions and 162 deletions
|
|
@ -1,15 +1,17 @@
|
|||
import * as express from "express";
|
||||
|
||||
import { Armory } from "../Armory";
|
||||
|
||||
export class IndexController {
|
||||
public async index(req: express.Request, res: express.Response): Promise<void> {
|
||||
res.render("index.html", {
|
||||
"title": "Armory",
|
||||
});
|
||||
private armory: Armory;
|
||||
|
||||
public constructor(armory: Armory) {
|
||||
this.armory = armory;
|
||||
}
|
||||
|
||||
public async character(req: express.Request, res: express.Response): Promise<void> {
|
||||
res.render("character.html", {
|
||||
"title": "Armory",
|
||||
public async index(req: express.Request, res: express.Response): Promise<void> {
|
||||
res.render("index.html", {
|
||||
title: "Armory",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue