Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Fixed Zepto\Router::post()
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Jan 29, 2014
1 parent 39c092a commit 462bea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function get($route, \Closure $callback)
*/
public function post($route, \Closure $callback)
{
return $this->route($route, $callback, 'POST');
$this->route(new Route($route, $callback), 'POST');
}

/**
Expand Down

0 comments on commit 462bea2

Please sign in to comment.