This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
ServerSpacebarOld/src/api/routes/template.ts.disabled
2023-03-31 15:52:33 +11:00

12 lines
276 B
Plaintext

//TODO: this is a template for a generic route
import { Router, Request, Response } from "express";
import { route } from "@spacebar/api";
const router = Router();
router.get("/",route({}), async (req: Request, res: Response) => {
res.json({});
});
export default router;