|
Last change
on this file since 43 was
42,
checked in by peter, 12 years ago
|
|
put the BookmarkApp::Dispatch class into its own file
|
-
Property svn:executable set to
*
|
|
File size:
639 bytes
|
| Rev | Line | |
|---|
| [2] | 1 | #!/usr/bin/perl -w |
|---|
| 2 | use strict; |
|---|
| 3 | |
|---|
| [23] | 4 | package BookmarkApp::Dispatch; |
|---|
| 5 | use base 'CGI::Application::Dispatch'; |
|---|
| 6 | |
|---|
| 7 | sub dispatch_args { |
|---|
| 8 | return { |
|---|
| 9 | table => [ |
|---|
| [30] | 10 | '[get]' => { app => 'BookmarkApp', rm => 'list' }, |
|---|
| 11 | 'list[get]' => { app => 'BookmarkApp', rm => 'list' }, |
|---|
| 12 | 'feed[get]' => { app => 'BookmarkApp', rm => 'feed' }, |
|---|
| 13 | ':id[get]' => { app => 'BookmarkApp', rm => 'view' }, |
|---|
| 14 | ':id/:field[get]' => { app => 'BookmarkApp', rm => 'view_field' }, |
|---|
| 15 | ':id?[post]' => { app => 'BookmarkApp', rm => 'edit' }, |
|---|
| [23] | 16 | ], |
|---|
| 17 | }; |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| [42] | 20 | # module return |
|---|
| 21 | 1; |
|---|
Note: See
TracBrowser
for help on using the repository browser.