ManaPHP\Mvc\Router\Group::addOptions PHP 메소드

addOptions() 공개 메소드

Add a route to the router that only match if the HTTP method is OPTIONS
public addOptions ( string $pattern, string | array $paths = null ) : ManaPHP\Mvc\Router\RouteInterface
$pattern string
$paths string | array
리턴 ManaPHP\Mvc\Router\RouteInterface
    public function addOptions($pattern, $paths = null)
    {
        return $this->_addRoute($pattern, $paths, 'OPTIONS');
    }