1 2 3 4 5 6 7 8 9 10 11
import { Request, Response, Router } from "express"; import { route } from "@fosscord/api"; const router: Router = Router(); router.put("/", route({}), async (req: Request, res: Response) => { //TODO res.json({code: 0}).status(400); }); export default router;