New route system (app dir) error
Answered
Kokoni posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
KokoniOP
I'm getting this error when using the new path system with the app directory
![Image](https://cdn.discordapp.com/attachments/1122186922928902245/1122186923134418964/Captura_de_pantalla_2023-06-24_172843.png)
![Image](https://cdn.discordapp.com/attachments/1122186922928902245/1122186923499331645/Captura_de_pantalla_2023-06-24_172917.png)
5 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Asian black bear
You need to return something
Not just call the function
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Asian black bear
So
return NextResponse.json(...)
Answer
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
KokoniOP
Oh, it's true. I forgot it.
Tysm