Skip to content

Commit

Permalink
Fix dispatch methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Luraine committed May 11, 2009
1 parent 787d979 commit 4325c66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/limonade.php
Expand Up @@ -901,7 +901,7 @@ function dispatch_get($path_or_array, $function, $agent_regexp = null)
*/
function dispatch_post($path_or_array, $function, $agent_regexp = null)
{
route("GET", $path_or_array, $function, $agent_regexp);
route("POST", $path_or_array, $function, $agent_regexp);
}

/**
Expand All @@ -914,7 +914,7 @@ function dispatch_post($path_or_array, $function, $agent_regexp = null)
*/
function dispatch_put($path_or_array, $function, $agent_regexp = null)
{
route("GET", $path_or_array, $function, $agent_regexp);
route("PUT", $path_or_array, $function, $agent_regexp);
}

/**
Expand All @@ -927,7 +927,7 @@ function dispatch_put($path_or_array, $function, $agent_regexp = null)
*/
function dispatch_delete($path_or_array, $function, $agent_regexp = null)
{
route("GET", $path_or_array, $function, $agent_regexp);
route("DELETE", $path_or_array, $function, $agent_regexp);
}


Expand Down

0 comments on commit 4325c66

Please sign in to comment.