✨ route middleware test option

This commit is contained in:
Flam3rboy committed 2021-09-18 11:56:06 +02:00
1 parent a7bf295591
commit a3484e64e4
4 files changed
+12 -13

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ export interface UserProfileResponse {
premium_since?: Date;
}
router.get("/", route({ response: { body: "UserProfileResponse" } }), async (req: Request, res: Response) => {
router.get("/", route({ test: { response: { body: "UserProfileResponse" } } }), async (req: Request, res: Response) => {
if (req.params.id === "@me") req.params.id = req.user_id;
const user = await User.getPublicUser(req.params.id, { relations: ["connected_accounts"] });