mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-26 06:02:53 +00:00
✨ route middleware test option
This commit is contained in:
1 parent
a7bf295591
commit
a3484e64e4
4 files changed
+12
-13
No files matched your search
@@ -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"] });
|
||||
|
||||
|
||||
Reference in new issue
Block a user