feat: arena ladder
This commit is contained in:
parent
ac6ca4c84e
commit
f7be06074e
12 changed files with 429 additions and 10 deletions
|
|
@ -13,6 +13,7 @@ import { CharacterCustomization } from "./data/CharacterCustomization";
|
|||
import { IndexController } from "./controllers/IndexController";
|
||||
import { CharacterController } from "./controllers/CharacterController";
|
||||
import { GuildController } from "./controllers/GuildController";
|
||||
import { ArenaController } from "./controllers/ArenaController";
|
||||
|
||||
export class Armory {
|
||||
public characterCustomization: CharacterCustomization;
|
||||
|
|
@ -157,6 +158,11 @@ export class Armory {
|
|||
app.get("/guild/:realm/:name", this.wrapRoute(guildsController.guild.bind(guildsController)));
|
||||
app.get("/guild/:realm/:guild/members", this.wrapRoute(guildsController.members.bind(guildsController)));
|
||||
|
||||
const arenaController = new ArenaController(this);
|
||||
app.get("/arena", this.wrapRoute(arenaController.index.bind(arenaController)));
|
||||
app.get("/arena/ladder", this.wrapRoute(arenaController.ladder.bind(arenaController)));
|
||||
app.get("/arena/team/:realm/:name", this.wrapRoute(arenaController.team.bind(arenaController)));
|
||||
|
||||
app.use((err, req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
// Error handler
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue