예제 #1
0
파일: Router.php 프로젝트: Haringat/lighter
 public static function static($path, $resource, $mime, $forceDownload)
 {
     self::register(Route::static($path, $resource, $mime, $forceDownload));
 }
예제 #2
0
파일: Route.php 프로젝트: Haringat/lighter
 public static function static($path, $resource, $mime, $forceDownload)
 {
     $route = new Route($path, null, array("GET"));
     $route->setStatic($resource, $mime, $forceDownload);
     return $route;
 }