flightphp / core

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

Trim url #409

Closed pluveto closed 4 years ago

pluveto commented 4 years ago

This helps support >=2 whitespaces between METHOD and URL:

Flight::route('GET  /auth/nonce',           array($apiAuth, 'getNonce')); // `GET[space][space]/auth/nonce`
Flight::route('POST /auth/login/email',     array($apiAuth, 'loginByEmail'));