$routes
$routes : array
Array contains all the routes for the rest API
Class API Contains all the routes and their classes
route(string $method, string $regexp, \APIPage $apiView, boolean $auth)
Adds a route for requests
string | $method | HTTP method in [GET, PUT, POST, DELETE] |
string | $regexp | Regular expression to match URL |
\APIPage | $apiView | Object to handle displaying of data |
boolean | $auth | Checks for authentication if true |