Relative Content

Tag Archive for javascriptapinext.js

Why do I get HTML when I tried to call my API in my nextjs after using nextAuth

so I’ve been watching tutorial about nextAuthv5, and after finishing the tutorial, I created my own api named appointment and created a simple get method but when I run the code, I received HTML instead of a simple response. It works when I call it on my website(paste the url in google) , but when I tried to call it in my postmark i received an html. I think it affects after changing the middleware.