Skip to content

Commit

Permalink
Add README and missing comment in routes.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamal Saepul Aziz committed Nov 10, 2010
1 parent 3916fed commit faaa93c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Minium, Lithium Sinatrafied## What It Is?It's for you all minimalist lover but want powerfull tools. Lithium is an awesome and powerfull framework. But sometimes you only need routing withoutall wacky wacky MVC. Minium is an example of how to do it.## How To Use It?Clone this repository and save it in your lithium folders so your folders now consist of`app`, `libraries`, and `minium`. Change the contents of `routes.php` and `filters.php` toyour needs and you are done.
Expand Down
2 changes: 2 additions & 0 deletions routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
use lithium\action\Response;
use lithium\net\http\Router;

// GET request
Router::connect('/', array('http:method' => "GET"), function($request) {
return new Response(array('body' => 'Hello world'));
});

// POST request
Router::connect('/post', array('http:method' => "POST"), function($request) {
return new Response(array('body' => $this->request->data));
});
Expand Down

0 comments on commit faaa93c

Please sign in to comment.