MasoniteFramework / masonite4

Temporary Repository for a Masonite Rewrite for Masonite 4
14 stars 3 forks source link

Add `routes:list` command #222

Closed girardinsamuel closed 2 years ago

girardinsamuel commented 2 years ago

This PR adds a simple command to list routes registered in a Masonite app ! It comes with simple filtering by HTTP methods and route name (case insensitive match). Routes are sorted alphabetically and displayed as a table.

python craft routes:list
python craft routes:list --methods GET,POST
python craft routes:list --name welcome
image
josephmancuso commented 2 years ago

I was looking for this command the other day lol