fix(guild): use guild id for members endpoint

This commit is contained in:
Axel Cocat 2022-03-17 00:26:09 +01:00
parent 4af6e7e8d0
commit c251b8de27
5 changed files with 21 additions and 8 deletions

View file

@ -151,7 +151,7 @@ export class Armory {
const guildsController = new GuildController(this);
app.get("/guild/:realm/:name", this.wrapRoute(guildsController.guild.bind(guildsController)));
app.get("/guild/:realm/:name/members", this.wrapRoute(guildsController.members.bind(guildsController)));
app.get("/guild/:realm/:guild/members", this.wrapRoute(guildsController.members.bind(guildsController)));
app.use((err, req: express.Request, res: express.Response, next: express.NextFunction) => {
// Error handler