2023-08-16 23:55:57 +08:00
|
|
|
import { NewsletterAPI } from 'pliny/newsletter';
|
|
|
|
import siteMetadata from '@/data/siteMetadata';
|
2023-08-16 23:29:22 +08:00
|
|
|
|
|
|
|
const handler = NewsletterAPI({
|
|
|
|
// @ts-ignore
|
|
|
|
provider: siteMetadata.newsletter.provider,
|
2023-08-16 23:55:57 +08:00
|
|
|
});
|
2023-08-16 23:29:22 +08:00
|
|
|
|
2023-08-16 23:55:57 +08:00
|
|
|
export { handler as GET, handler as POST };
|