Download src/http/middleware/not-found-handler.ts from Bin29/ManimCat: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/Bin29/ManimCat/resolve/main/src/http/middleware/not-found-handler.ts
- Command line
-
hf download hf://spaces/Bin29/ManimCat/src/http/middleware/not-found-handler.ts
-
curl -L -o not-found-handler.ts https://huggingface.co/spaces/Bin29/ManimCat/resolve/main/src/http/middleware/not-found-handler.ts
296 Bytes
| /** | |
| * 404 Not Found boundary. | |
| */ | |
| import type { Request, Response, NextFunction } from 'express' | |
| export function notFoundHandler(req: Request, res: Response, _next: NextFunction): void { | |
| res.status(404).json({ | |
| error: 'Route not found', | |
| path: req.path, | |
| method: req.method, | |
| }) | |
| } | |