source: bookmarks/trunk/index.cgi @ 30

Last change on this file since 30 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
RevLine 
[2]1#!/usr/bin/perl -w
2use strict;
3
[23]4package BookmarkApp::Dispatch;
5use base 'CGI::Application::Dispatch';
6
7sub 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
20package main;
21BookmarkApp::Dispatch->dispatch();
Note: See TracBrowser for help on using the repository browser.