Skip to content

Instantly share code, notes, and snippets.

@abh
Created April 12, 2012 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abh/29b7d75676b2ac8650f5 to your computer and use it in GitHub Desktop.
Save abh/29b7d75676b2ac8650f5 to your computer and use it in GitHub Desktop.
my $r = $self->routes;
my $ar = $r->bridge('/')->to(action => 'auth');
my $apir = $ar->to(controller => 'handler');
my $get = $apir->via('GET');
my $put = $apir->via('PUT');
$get->route('/api/domain/*domain')->to(domain => '', action => 'get_domain');
$put->route('/api/domain/*domain')->to(domain => '', action => 'put_domain');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment