patch()
patch() : \OCP\Route\IRoute
Specify PATCH as the method to use with this route
Interface IRoute
patch() : \OCP\Route\IRoute
Specify PATCH as the method to use with this route
method(string $method) : \OCP\Route\IRoute
Specify the method when this route is to be used
string | $method | HTTP method (uppercase) |
get() : \OCP\Route\IRoute
Specify GET as the method to use with this route
post() : \OCP\Route\IRoute
Specify POST as the method to use with this route
delete() : \OCP\Route\IRoute
Specify DELETE as the method to use with this route
action(string|callable $class, string $function = null) : \OCP\Route\IRoute
The action to execute when this route matches
string|callable | $class | the class or a callable |
string | $function | the function to use with the class |
This function is called with $class set to a callable or to the class with $function
defaults(array $defaults) : \OCP\Route\IRoute
Defaults to use for this route
array | $defaults | The defaults |
requirements(array $requirements) : \OCP\Route\IRoute
Requirements for this route
array | $requirements | The requirements |
put() : \OCP\Route\IRoute
Specify PUT as the method to use with this route