/[sudobot]/branches/2.x/src/api/routes/verificationdata.ts
ViewVC logotype

Contents of /branches/2.x/src/api/routes/verificationdata.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (show annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 613 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 import { Request, Response } from "express";
2 import DiscordClient from "../../client/Client";
3 import UnverifiedMember from "../../models/UnverifiedMember";
4 import auth from "../Auth";
5 import guildAuth from "../GuildAuth";
6 import { Route } from "../Router";
7
8 export default <Route> {
9 path: '/verification/:guild',
10 middleware: [guildAuth],
11 async get(req: Request, res: Response) {
12 await res.json(await UnverifiedMember.findAll({
13 where: {
14 guild_id: req.params.guild
15 },
16 order: [
17 ['id', 'DESC']
18 ]
19 }));
20 }
21 };

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26