Skip to content

Commit

Permalink
Add post, put, delete routing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorKluch committed Jun 11, 2014
1 parent 2874233 commit 1bc93ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/SlimExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ public function get ($route, $action, $cond = array(), $name = '') {
$this->addRoute('get', $route, $action, $cond, $name);
}

public function post ($route, $action, $cond = array(), $name = '') {
$this->addRoute('post', $route, $action, $cond, $name);
}

public function put ($route, $action, $cond = array(), $name = '') {
$this->addRoute('put', $route, $action, $cond, $name);
}

public function delete ($route, $action, $cond = array(), $name = '') {
$this->addRoute('delete', $route, $action, $cond, $name);
}

/**
* @var MysqlQueryBuilder
*/
Expand Down

0 comments on commit 1bc93ab

Please sign in to comment.