Help for this page

Select Code to Download


  1. or download this
    get '/' => sub {
        template 'index' => { 'title' => 'StoryGen' };
    ...
    any qr{.*} => sub {
        "<h1> default route </h1> ";
    };
    
  2. or download this
    C:\Don\StoryGenerator\TestSrc\StoryGen>plackup -p 3000 bin/app.psgi
    HTTP::Server::PSGI: Accepting connections at http://0:3000/
    ...
    [StoryGen:11976] core @2019-11-21 18:28:45> Entering hook core.app.bef
    +ore_request in (eval 221) l. 1
    [StoryGen:11976] core @2019-11-21 18:28:45> Entering hook core.app.aft
    +er_request in (eval 221) l. 1
    127.0.0.1 - - [21/Nov/2019:18:28:45 -0600] "GET /url(%22/images/dragon
    +.jpg%22) HTTP/1.1" 200 25 "http://localhost:3000/" "Mozilla/5.0 (Wind
    +ows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
    +e/64.0.3282.140 Safari/537.36 Edge/18.17763"