Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
ManaPHP
Mvc
Router
GroupInterface
addGet
ManaPHP\Mvc\Router\GroupInterface::addGet PHP Method
GroupInterface Interface Documentation
Show file
Open project: manaphp/manaphp
addGet()
public
method
Adds a route to the router that only match if the HTTP method is GET
public
addGet
(
string
$pattern
,
string
|
array
$paths
= null ) :
ManaPHP\Mvc\Router\RouteInterface
$pattern
string
$paths
string
|
array
return
ManaPHP\Mvc\Router\RouteInterface
public function addGet($pattern, $paths = null);
GroupInterface
add
addDelete
addGet
addHead
addOptions
addPatch
addPost
addPut
match