diff --git a/Routes.php b/Routes.php index 3004e8c..c7f0cdc 100755 --- a/Routes.php +++ b/Routes.php @@ -66,8 +66,8 @@ public static function map($route, $callback, $args = array()) { $upstatement_routes->router->setBasePath($base_path); } $route = self::convert_route($route); - $upstatement_routes->router->map('GET|POST', trailingslashit($route), $callback, $args); - $upstatement_routes->router->map('GET|POST', untrailingslashit($route), $callback, $args); + $upstatement_routes->router->map('GET|POST|PUT|DELETE', trailingslashit($route), $callback, $args); + $upstatement_routes->router->map('GET|POST|PUT|DELETE', untrailingslashit($route), $callback, $args); } /**