Skip to content

Commit

Permalink
Merge pull request #3 from parisholley/patch-2
Browse files Browse the repository at this point in the history
Support PUT/DELETE
  • Loading branch information
jarednova authored Jul 6, 2016
2 parents 23cf666 + a514fe5 commit fae7d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit fae7d46

Please sign in to comment.