forked from UKSOURCE/ipv6
13 lines
297 B
TypeScript
13 lines
297 B
TypeScript
import axiosInstance from "@/lib/axios";
|
|
|
|
export interface NewsletterSubscribePayload {
|
|
email: string;
|
|
pageUrl?: string;
|
|
}
|
|
|
|
export async function subscribeNewsletter(
|
|
payload: NewsletterSubscribePayload,
|
|
): Promise<void> {
|
|
await axiosInstance.post("/api/newsletter/subscribe", payload);
|
|
}
|