Download src/utils/notifyOnSignup.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/utils/notifyOnSignup.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/utils/notifyOnSignup.ts
-
curl -L -o notifyOnSignup.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/utils/notifyOnSignup.ts
413 Bytes
| import { ENVS } from "@/config/env.config.js"; | |
| export const notify = (name: string, email: string, ip: string) => { | |
| return fetch("https://ping-forge.vercel.app/api/v1/events", { | |
| method: "POST", | |
| headers: { | |
| Authorization: `Bearer ${ENVS.NOTIFY_EVENTS_API_KEY}`, | |
| }, | |
| body: JSON.stringify({ | |
| category: "lynfera", | |
| description: "New User", | |
| fields: { | |
| name, | |
| ip, | |
| email, | |
| }, | |
| }), | |
| }); | |
| }; | |