catch any name to index api for notion

This commit is contained in:
myl7 2022-01-24 17:18:21 +08:00
parent fad501a562
commit b63b374666
No known key found for this signature in database
GPG key ID: 04F1013B67177C88

6
pages/api/name/[name].ts Normal file
View file

@ -0,0 +1,6 @@
import type { NextApiRequest, NextApiResponse } from 'next'
import { default as indexHandler } from '..'
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
indexHandler(req, res)
}