Routing
use Siler\Route;
Route\get('/path', <handler>);
Route\post('/path', <handler>);
Route\put('/path', <handler>);
Route\delete('/path', <handler>);
Route\options('/path', <handler>);Route\any('/path', <handler>);Route\route('custom', '/path', <handler>);Route\route(['post', 'put'], '/path', <handler>);Route parameters
Route\get('/number/([0-9]+)', <handler>);Route\get('/number/{n}', <handler>);Optional parameters
Route handlers
Callables
Filenames
Resources
HTTP Verb
URI
File
Files
Filename
Method
Path
Filename
Method
Path
Filename
Method
Path
Request
Body
$_GET and $_POST superglobals
Headers
Response
Headers
Last updated