New route system (app dir) error
Answered
Kokoni posted this in #help-forum
KokoniOP
I'm getting this error when using the new path system with the app directory
5 Replies
Giant panda
You need to return something
Not just call the function
Giant panda
So
return NextResponse.json(...)Answer
KokoniOP
Oh, it's true. I forgot it.
Tysm