MasoniteFramework / masonite

The Modern And Developer Centric Python Web Framework. Be sure to read the documentation and join the Discord channel for questions: https://discord.gg/TwKeFahmPZ
http://docs.masoniteproject.com
MIT License
2.19k stars 128 forks source link

Fallback route #770

Open eaguad1337 opened 11 months ago

eaguad1337 commented 11 months ago

Is your feature request related to a problem?

No

What do we currently have to do now?

No response

Describe the solution you'd like

I would like to have a way to define a fallback route just like Laravel does, like this way:

Route.fallback("MyController.index")

This to be able to catch any route and fallback to that one.

Describe alternatives you've considered

No response

Would this be a breaking change ?

Anything else ?

No response