How to access all routes in json format

I need to create a jakefile that would iterate over all registered routes in adonis and then each route would be added to the permission file for seeding the permissions model.

1 Like

Answered in a different thread here How route list from project?