Creating custom route: Cannot read properties of undefined (reading 'forEach')

Solution for the problem is to make it a js file, and export the object with module.exports = {routes:[]}.

Still don’t understand why the typescript version is not working. Anyone who has an idea? So I can shoot a request for updating the docs?