fix middleware url metode
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user