- Timestamp:
- 07/01/15 16:18:22 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/BookmarksApp.pm
r99 r101 1 1 package BookmarksApp; 2 3 =head1 NAME 4 5 BookmarksApp 6 7 =head1 SYNOPSIS 8 9 use BookmarksApp; 10 use Digest::MD5 qw{md5_hex}; 11 12 my $username = '...'; 13 my $password = '...'; 14 my $app = BookmarksApp->new({ 15 config => { 16 dbname => 'bookmarks.db', 17 18 # set these if you want non-GET requests to require authentication 19 auth => 1, 20 digest_key => 'secret', 21 digest_password => md5_hex("$username:Bookmarks:$password"), 22 23 # set this if the app is running behind a proxy server 24 proxy_ip => '...', 25 }, 26 }); 27 28 # returns the coderef appropriate for use in an app.psgi, 29 # or for passing the Plack::Runner, etc. 30 $app->to_app; 31 32 =cut 2 33 3 34 use strict; … … 103 134 # module return 104 135 1; 136 137 =head1 AUTHOR 138 139 Peter Eichman <peichman@cpan.org> 140 141 =cut
Note: See TracChangeset
for help on using the changeset viewer.