fix newsletter api route

This commit is contained in:
Timothy Lin
2023-07-16 23:42:19 +08:00
parent 20704c9f75
commit f063d4d8b0
4 changed files with 91 additions and 20 deletions

View File

@ -0,0 +1,9 @@
import { NewsletterAPI } from 'pliny/newsletter'
import siteMetadata from '@/data/siteMetadata'
const handler = NewsletterAPI({
// @ts-ignore
provider: siteMetadata.newsletter.provider,
})
export { handler as GET, handler as POST }