Last change
on this file since 38 was
30,
checked in by peter, 12 years ago
|
- added a separate run mode for the field resources (view_field)
- added an api outline/plan
|
-
Property svn:executable set to
*
|
File size:
669 bytes
|
Line | |
---|
1 | #!/usr/bin/perl -w |
---|
2 | use strict; |
---|
3 | |
---|
4 | package BookmarkApp::Dispatch; |
---|
5 | use base 'CGI::Application::Dispatch'; |
---|
6 | |
---|
7 | sub dispatch_args { |
---|
8 | return { |
---|
9 | table => [ |
---|
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' }, |
---|
16 | ], |
---|
17 | }; |
---|
18 | } |
---|
19 | |
---|
20 | package main; |
---|
21 | BookmarkApp::Dispatch->dispatch(); |
---|
Note: See
TracBrowser
for help on using the repository browser.