tailwind-nextjs-blog/app/api/newsletter/route.ts

10 lines
242 B
TypeScript
Raw Permalink Normal View History

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