Nextjs 14 and mongoDB TypeError: res.status is not a function on GET request
working on a nextjs project using mongodb. Using app router, trying to test api calls using the following code, weirdly enough I get a response from the db
working on a nextjs project using mongodb. Using app router, trying to test api calls using the following code, weirdly enough I get a response from the db