fix middleware url metode

This commit is contained in:
2025-04-08 14:46:13 +08:00
parent a3d9798939
commit ba32184039

View File

@@ -127,7 +127,7 @@ export const middleware = async (req: NextRequest) => {
try { try {
const validationResponse = await fetch( const validationResponse = await fetch(
`${new URL(req.url).origin}/api/validation`, new URL(validationApiRoute, req.url),
{ {
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",