I am new to nextJs and the folder structure routing doesn't work for me and seems to obfuscate a lot of parameters. How can I create a standard API and routes config maybe in a .js file like regular routing libraries do?
The official documentation doesn't show how to do that.