Spaces:
Runtime error
Runtime error
Download src/api/guards/telemetry.guard.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/api/guards/telemetry.guard.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api@refs/pr/1/src/api/guards/telemetry.guard.ts
-
curl -L -o telemetry.guard.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/src/api/guards/telemetry.guard.ts
290 Bytes
| import { sendTelemetry } from '@utils/sendTelemetry'; | |
| import { NextFunction, Request, Response } from 'express'; | |
| class Telemetry { | |
| public collectTelemetry(req: Request, res: Response, next: NextFunction): void { | |
| sendTelemetry(req.path); | |
| next(); | |
| } | |
| } | |
| export default Telemetry; | |