feat: use character data from database

This commit is contained in:
Axel Cocat 2022-01-02 18:36:16 +01:00
parent 028d0390f4
commit ac26336bc3
16 changed files with 159543 additions and 162 deletions

View file

@ -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",
});
}
}