Changeset 45 in bookmarks for trunk/BookmarkApp/Dispatch.pm


Ignore:
Timestamp:
06/03/13 17:43:16 (11 years ago)
Author:
peter
Message:
  • created a separate edit runmode to edit existing bookmarks; handled POST /{id}
  • the old edit runmode has been renamed to create, and only handles POST /
  • added an update method to the Bookmark class
  • the URI field on the bookmark editing form is no longer ever readonly; the URI can be changed after the bookmark has been created
  • changes to the URI or the bookmark's tags cause the bookmark's mtime to be updated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BookmarkApp/Dispatch.pm

    r42 r45  
    1313            ':id[get]'        => { app => 'BookmarkApp', rm => 'view' }, 
    1414            ':id/:field[get]' => { app => 'BookmarkApp', rm => 'view_field' }, 
    15             ':id?[post]'      => { app => 'BookmarkApp', rm => 'edit' }, 
     15            '[post]'          => { app => 'BookmarkApp', rm => 'create' }, 
     16            ':id[post]'       => { app => 'BookmarkApp', rm => 'edit' }, 
    1617        ], 
    1718    }; 
Note: See TracChangeset for help on using the changeset viewer.