source: bookmarks/trunk/BookmarkApp/Dispatch.pm @ 43

Last change on this file since 43 was 42, checked in by peter, 11 years ago

put the BookmarkApp::Dispatch class into its own file

  • Property svn:executable set to *
File size: 639 bytes
Line 
1#!/usr/bin/perl -w
2use strict;
3
4package BookmarkApp::Dispatch;
5use base 'CGI::Application::Dispatch';
6
7sub 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# module return
211;
Note: See TracBrowser for help on using the repository browser.