blob: e33e5695da7615a420acd73a242c9c872e8a9289 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { route } from "@fosscord/api";
import { User } from "@fosscord/util";
import { Request, Response, Router } from "express";
const router: Router = Router();
router.get("/", route({}), async (req: Request, res: Response) => {
const { id } = req.params;
res.json(await User.getPublicUser(id));
});
export default router;
|