Commit Graph

19 Commits

Author SHA1 Message Date
SteamPixel
2acc000d98 The multi match mode is now optional 2020-01-11 22:44:56 +01:00
SteamPixel
6b9c6bbf6d Removed the header() calls from the class to add more flexibility to 404 and 405 routes 2020-01-11 22:18:06 +01:00
Maximilian Götz
8a198bc168 Unified the code style across the project, fixed grammar issues, added TODOs 2020-01-08 16:25:45 +01:00
Sander A
4322382046 Added Phpdoc to the Route::add method
For easier understanding of accepted types and better code validation support
2019-02-22 01:08:36 +02:00
Sander A
33c54c8511 Added option to define routes with multiple allowed methods 2019-02-22 01:06:38 +02:00
Sander A
d3f5e77ad3 Merge remote-tracking branch 'upstream/master' 2019-02-21 23:27:07 +02:00
Chris
80bfe096b8 Added handling for case and trailing slashes 2019-01-31 10:54:07 +01:00
Sander A
338c77594d
Remove trailing slash from routes
Remove trailing slash from route (unless it's the root slash) before matching against routes. This ensures that both "/events" and "/events/" are matched with the route "/events"
2019-01-31 03:26:38 +02:00
steampixel
3a8218687f Fixed mixed indents 2018-03-13 16:25:37 +01:00
steampixel
2b76b40d82 Complete refactoring 2018-03-13 16:01:52 +01:00
steampixel
47ce76fbb7 Added navigation and testing instructions 2018-03-12 17:12:05 +01:00
steampixel
ee939f5c21 Removed nasty Config class 2018-03-12 16:58:57 +01:00
steampixel
0d9829796f Better readme and improved comments 2018-03-12 16:49:55 +01:00
Chris
f3d7866b37 Fixed basepath bug and added security tips 2017-10-25 09:00:07 +02:00
Chris
140681593c Cleaned up code 2017-10-25 08:35:17 +02:00
Chris
8699df0060 Added leading slash to routes 2017-10-25 08:25:13 +02:00
SteamPixel
11d0aa2c7a Corrected root page bug 2016-05-16 17:41:04 +01:00
SteamPixel
782141717a Added more example rules and comments. 2015-09-10 14:09:42 +02:00
SteamPixel
730130e369 initial commit 2015-09-10 13:37:52 +02:00