Cannot create custom route - controller in handler parameter is undefined

That didn’t fix it for me. From what I’ve gathered we shouldn’t need index files either way, because the file are imported automatically by Strapi.