Changeset 42 in bookmarks for trunk/index.cgi


Ignore:
Timestamp:
05/30/13 15:19:16 (12 years ago)
Author:
peter
Message:

put the BookmarkApp::Dispatch class into its own file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.cgi

    r41 r42  
    22use strict; 
    33 
    4 package BookmarkApp::Dispatch; 
    5 use base 'CGI::Application::Dispatch'; 
     4use BookmarkApp::Dispatch; 
    65 
    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; 
    216# check for whether we are behind a reverse proxy, and adjust the SERVER_NAME accordingly 
    227# TODO: use something like Plack::Middlware::ReverseProxy instead 
Note: See TracChangeset for help on using the changeset viewer.