JApplicationWebRouterRest
class JApplicationWebRouterRest extends JApplicationWebRouterBase
RESTful Web application router class for the Joomla Platform.
Methods
Find and execute the appropriate controller based on a given route.
Set the controller name prefix.
Set the default controller name.
Add a route map to the router. If the pattern already exists it will be overwritten.
Add a route map to the router. If the pattern already exists it will be overwritten.
Set a controller class suffix for a given HTTP method.
Set to allow or not method in POST request
Get the property to allow or not method in POST request
Details
JApplicationWebRouter
addMap(
string $pattern,
string $controller)
Add a route map to the router. If the pattern already exists it will be overwritten.
JApplicationWebRouter
addMaps(
array $maps)
Add a route map to the router. If the pattern already exists it will be overwritten.
JApplicationWebRouter
setHttpMethodSuffix(
string $method,
string $suffix)
Set a controller class suffix for a given HTTP method.