Commit 115eb8d0 authored by Aaron Kuzemchak's avatar Aaron Kuzemchak

Added shortcut method to load a designated route's response

parent 2b4ab94e
......@@ -349,4 +349,16 @@ class Route {
Filter::register($name, $callback);
}
/**
* Calls the specified route and returns its response.
*
* @param string $method
* @param string $uri
* @return Response
*/
public static function load($method, $uri)
{
return Router::route(strtoupper($method), $uri)->call();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment