Spaces:
Sleeping

File size: 413 Bytes
4e83772
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
			},
		}),
	});
};