Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated pod.

  • Loading branch information...
commit 0bf0e80e7a8932820e60c7592b0bcbd3f36b013d 1 parent c305fd1
Yusuke Wada authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/Noe.pm
8 lib/Noe.pm
View
@@ -135,9 +135,11 @@ Noe::Dispatcher is HTTPx::Dispatcher based. Write rules on your dispatcher class
package MyApp::Web::Dispatcher;
use Noe::Dispatcher;
- connect '' => { controller => 'Root', action => 'index' };
- connect 'hi' => { controller => 'Root', action => 'hi' };
- connect 'json' => { controller => 'JSON', action => 'index' };
+ connect '' => { controller => 'Root', action => 'index' };
+ connect '/hi' => { controller => 'Root', action => 'hi' };
+ connect '/json' => { controller => 'JSON', action => 'index' };
+ get '/comment/:id' => { controller => 'Comment', action => 'show' };
+ post '/comment/:id' => { controller => 'Comment', action => 'post' };
1;
Please sign in to comment.
Something went wrong with that request. Please try again.