Skip to content

Commit fae7d46

Browse files
authored
Merge pull request #3 from parisholley/patch-2
Support PUT/DELETE
2 parents 23cf666 + a514fe5 commit fae7d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Routes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public static function map($route, $callback, $args = array()) {
6666
$upstatement_routes->router->setBasePath($base_path);
6767
}
6868
$route = self::convert_route($route);
69-
$upstatement_routes->router->map('GET|POST', trailingslashit($route), $callback, $args);
70-
$upstatement_routes->router->map('GET|POST', untrailingslashit($route), $callback, $args);
69+
$upstatement_routes->router->map('GET|POST|PUT|DELETE', trailingslashit($route), $callback, $args);
70+
$upstatement_routes->router->map('GET|POST|PUT|DELETE', untrailingslashit($route), $callback, $args);
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)