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

12 lines
297 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({ mergeParams: true });
router.get("/",route({}), async (req: Request, res: Response) => {
res.json({});
});
export default router;