mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Remove unused path
This commit is contained in:
parent
47e5164ded
commit
df77d32793
@ -28,7 +28,7 @@ export const getInput = (req: NextRequest) => req.json().catch(() => ({}))
|
|||||||
* @param req NextApiRequest
|
* @param req NextApiRequest
|
||||||
* @param path string
|
* @param path string
|
||||||
*/
|
*/
|
||||||
export const transformRequest = (req: NextApiRequest, path: string) => {
|
export const transformRequest = (req: NextApiRequest) => {
|
||||||
const headers = new Headers()
|
const headers = new Headers()
|
||||||
let body
|
let body
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ export default function nodeHandler<P extends APIProvider>(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const output = await handlers[path](transformRequest(req, path))
|
const output = await handlers[path](transformRequest(req))
|
||||||
const { status, errors, data, redirectTo, headers } = output
|
const { status, errors, data, redirectTo, headers } = output
|
||||||
|
|
||||||
setHeaders(res, headers)
|
setHeaders(res, headers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user