export default function handler(req, res) {
console.log("Received Gesture");
}
This is my code in pageapi folder. When the api is being called it prints in the console: “Received Gesture” but I want it also to head to a specific page in my project. How to do so?
I tried to use next/navigation but it doesn’t work becs I am on the server side I think.