forked from UKSOURCE/ipv6
init
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user