mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-21 15:10:27 +00:00
chore: fix linting
This commit is contained in:
@@ -7,7 +7,10 @@ import { isPreviewImageSupportEnabled } from '../lib/config'
|
||||
import * as types from '../lib/types'
|
||||
import * as db from '../lib/db'
|
||||
|
||||
export default async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
export default async (
|
||||
req: NextApiRequest,
|
||||
res: NextApiResponse
|
||||
): Promise<void> => {
|
||||
if (req.method !== 'POST') {
|
||||
return res.status(405).send({ error: 'method not allowed' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user