Changeset 107 in bookmarks for trunk/lib/BookmarksApp.pm
- Timestamp:
- 11/09/15 20:21:41 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/BookmarksApp.pm
r101 r107 82 82 }; 83 83 84 resource '/tags' => sub { 85 GET { 86 my ($env, $params) = @_; 87 return $self->_controller->tag_tree; 88 }; 89 }; 90 resource '/tags/*' => sub { 91 GET { 92 my ($env, $params) = @_; 93 my $tag_path = (@{ $params->{splat} })[0]; 94 return $self->_controller->tag_tree([ split m{/}, $tag_path ]); 95 }; 96 }; 97 84 98 resource '/{id}' => sub { 85 99 GET { … … 99 113 }; 100 114 }; 115 101 116 }; 102 117
Note: See TracChangeset
for help on using the changeset viewer.