class
Routes implements
ExtenderInterface
Methods
get(string $path, string $name, $handler)
<p>Add a GET route.</p>
post(string $path, string $name, $handler)
<p>Add a POST route.</p>
put(string $path, string $name, $handler)
<p>Add a PUT route.</p>
patch(string $path, string $name, $handler)
<p>Add a PATCH route.</p>
delete(string $path, string $name, $handler)
<p>Add a DELETE route.</p>
remove(string $name)
<p>Remove an existing route.</p>
Details
__construct(string $appName)
Routes
get(string $path, string $name, $handler)
Routes
post(string $path, string $name, $handler)
Routes
put(string $path, string $name, $handler)
Routes
patch(string $path, string $name, $handler)
<p>Add a PATCH route.</p>
Routes
delete(string $path, string $name, $handler)
<p>Add a DELETE route.</p>
<p>Remove an existing route.</p>
<p>Necessary before overriding a route.</p>
extend(Container $container, Extension $extension = null)