Commit 6e82a4ac authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #359 from akuzemchak/feature/load-route

Load designated route's response
parents 0893f3cc 115eb8d0
......@@ -381,4 +381,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