Skip to content

Commit

Permalink
Add group method for Route
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Dec 1, 2020
1 parent 7b5290c commit 0fab3b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ public static function add($method, $path, $callback)
{
static::addRoute($method, $path, $callback);
}

/**
* @param $path
* @param $callback
*/
public static function group($path, $callback)
{
static::$_collector->addGroup($path, $callback);
}

/**
* @param $method
Expand Down

0 comments on commit 0fab3b0

Please sign in to comment.