UNPKG

generator-premiere-mern-stack

Version:

A fully function MERN stack generator running on the latest and greatest thats easy to get started with

22 lines (12 loc) 362 B
import express, { Request, Response, NextFunction } from 'express'; const router = express.Router(); router.all("/", (req: Request, _res: Response, next: NextFunction) => { console.log(`${req.method} for ${req.url}`); next(); }); router.get("*", function (_req: Request, res: Response) { res.json({ "Name": "Samuel" }); }); export default router;