flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.63k stars 409 forks source link

Routing prefix #281

Closed artyuum closed 9 months ago

artyuum commented 8 years ago

Hi, I really like Flight, thanks for your work. How can I add a routing prefix in every URLs ? For example, here is the prefix I want to add in the URLs : /api/v1 I would like to know if there is a way to do that without manually edit every routes in my code just to add "/api/v1/".

mikecao commented 8 years ago

It would need to be an enhancement. I can probably do it as part of #276.

n0nag0n commented 9 months ago

I just added this feature in https://github.com/flightphp/core/tree/route-grouping Let me know if this is what you were looking for.

krmu commented 9 months ago

@n0nag0n this is fixed I guess.