n0nag0n
6d41115e9a
initial commit for containerization
10 months ago
Austin Collier
5406bbedc1
added test coverage and clearing body for head requests
10 months ago
Belle Aerni
296c9b57d5
Also register HEAD for GET routes
10 months ago
Daniel Schreiber
e6a29c7476
fix: handle encoded slashes for url parameters - fixes #552
11 months ago
n0nag0n
0622fd1c2b
fixed issues with @params_with_underscores and prepopulate getUrl() params.
11 months ago
Austin Collier
660a642e8a
fixed bug with grouped routes
12 months ago
fadrian06
28b6c99561
Improved docblocks in Engine class
12 months ago
n0nag0n
df90d69787
so many phpcs fixes. No more, no more!
1 year ago
fadrian06
7015e5d3ba
Moved copyright and license to a public place :D
1 year ago
fadrian06
44a056ca30
Fixed phpcs format problems in the rest of Flight modules
1 year ago
Austin Collier
cc4338a34b
added PSR12 coding style to files.
1 year ago
fadrian06
875d25f308
Remove unused docblocks in Router::class
1 year ago
n0nag0n
593e1ee9bc
phpstan cleanup
1 year ago
n0nag0n
bef92303d7
Merge pull request #514 from flightphp/middleware
...
Middleware code
1 year ago
n0nag0n
b388a26765
fixed alias issue, levenshtein recommendations and coverage-check
1 year ago
Austin Collier
f543d74bfe
Middleware code
1 year ago
Austin Collier
74d2fd7002
Fixes for group routing
1 year ago
n0nag0n
7991530761
Route alias and phpstan updates
1 year ago
Austin Collier
65b3d5445f
Lots more unit testing for group based routing
1 year ago
Austin Collier
12073629cc
added ability to group routes together
1 year ago
fadrian06
fbcc9108c2
DocBlocks improved
1 year ago
Masroor Ehsan
5b8e743e3d
refactorings
4 years ago
Masroor Ehsan
04e471bf46
PHP ^7.4|^8.0 compatibility
4 years ago
pluveto
ddb806a604
Trim url pattern
...
This helps support whitespaces between METHOD and URL:
```php
Flight::route('GET /auth/nonce', array($apiAuth, 'getNonce')); // `GET[space][space]/auth/nonce`
Flight::route('POST /auth/login/email', array($apiAuth, 'loginByEmail'));
```
5 years ago
Delyan Angelov
0daa3f81b5
Allow cyrillic letters in the routes, by matching the result of urldecode over the URL .
6 years ago
Mike Cao
6aea7394c4
Remove $route from parameter list, only pass when dispatching callback.
8 years ago
Mike Cao
7fd3594ac7
Added ability to perform case sensitive matching of URLs.
9 years ago
maks feltrin
bcb5b120a9
Update Router.php
11 years ago
Mike Cao
d84e51ba47
Updated route object passing functionality.
...
Before the route object would automatically be passed to all callbacks. Now you need to explicitly
ask for it by passing in true as the third parameter in Flight::route().
11 years ago
Mike Cao
84078158c3
Introduced new Engine class.
...
Core functionality has been moved to a namespaced Engine class. The
existing Flight class is now just a static pass-through to the Engine class.
Also fixed autoloading and initialization issues.
12 years ago
Mike Cao
28ae5e0aec
Added route passing functionality.
12 years ago
Mike Cao
4cf069a552
Minor code changes.
12 years ago
Mike Cao
65807a1f29
Parse optional parameters before regex.
12 years ago
Mike Cao
1ba8770da7
Added matched regex property.
12 years ago
Mike Cao
61ce37ca64
Updated router pattern matching.
12 years ago
Mike Cao
cec890c585
Code cleanup
12 years ago
Mike Cao
d081879379
Parameters should be URL decoded.
12 years ago
Mike Cao
4f48bd36be
Fixed problem regexes in optional parameters
12 years ago
Mike Cao
257d0650d3
Added support for optional route parameters
12 years ago
Mike Cao
830088733d
Fixed PHP notices
13 years ago
Mike Cao
5d789ceb2e
More refactoring, updated documenation
13 years ago
Mike Cao
e2f1dc99bb
Major refactoring, implemented namespaces
13 years ago