mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-07-31 13:40:16 +02:00
Merge pull request #75 from dannyvankooten/add-patch-method-type
Add PATCH to comment as valid method.
This commit is contained in:
@@ -67,7 +67,7 @@ class AltoRouter {
|
|||||||
/**
|
/**
|
||||||
* Map a route to a target
|
* Map a route to a target
|
||||||
*
|
*
|
||||||
* @param string $method One of 4 HTTP Methods, or a pipe-separated list of multiple HTTP Methods (GET|POST|PUT|DELETE)
|
* @param string $method One of 5 HTTP Methods, or a pipe-separated list of multiple HTTP Methods (GET|POST|PATCH|PUT|DELETE)
|
||||||
* @param string $route The route regex, custom regex must start with an @. You can use multiple pre-set regex filters, like [i:id]
|
* @param string $route The route regex, custom regex must start with an @. You can use multiple pre-set regex filters, like [i:id]
|
||||||
* @param mixed $target The target where this route should point to. Can be anything.
|
* @param mixed $target The target where this route should point to. Can be anything.
|
||||||
* @param string $name Optional name of this route. Supply if you want to reverse route this url in your application.
|
* @param string $name Optional name of this route. Supply if you want to reverse route this url in your application.
|
||||||
|
Reference in New Issue
Block a user