Changeset 9 in bookmarks for trunk/index.cgi


Ignore:
Timestamp:
03/25/12 15:45:11 (12 years ago)
Author:
peter
Message:
  • use SQL::Interp to generate the SQL for Bookmarks::get_resources()
  • Bookmarks::get_resources() accepts a limit parameter to add a limit to the SQL query
  • added a feed run mode that returns an Atom feed of the most recent 12 bookmarks; can have an optional ?tag parameter that only looks for bookmarks with that tag
  • added an explicit "list" dispatch target that calls the `list run mode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.cgi

    r5 r9  
    99    table => [ 
    1010        '[get]'              => { app => 'BookmarkApp', rm => 'list' }, 
     11        'list[get]'          => { app => 'BookmarkApp', rm => 'list' }, 
     12        'feed[get]'          => { app => 'BookmarkApp', rm => 'feed' }, 
    1113        ':id/:field?[get]'   => { app => 'BookmarkApp', rm => 'view' }, 
    1214        ':id?[post]'         => { app => 'BookmarkApp', rm => 'edit' }, 
Note: See TracChangeset for help on using the changeset viewer.