summary refs log tree commit diff
path: root/api/src/routes/users/#id/index.ts
blob: 3841756b5e299eea7a81955088fe7c0717371dee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { Router, Request, Response } from "express";
import { User } from "../../../../../util/dist";

const router: Router = Router();

router.get("/", async (req: Request, res: Response) => {
	const { id } = req.params;

	res.json(await User.getPublicUser(id));
});

export default router;