Here’s what I want to do:

post '/info' => sub {
        info "\n\n\tIn /info with params:\n" . Dumper params;

        my $tmp_href = params;

        if (&do_some_stuff_here($tmp_href)) {
                $tmp_href->{status_code}        = "200";                
        }
        return $tmp_href;

        # THEN DO SOME POST RETURN STUFF HERE  (Obviously not here, but somehow 
a callback function for post-return or something like that?)
        
};

Does it exist? I feel like I’ve been through the documentation pretty 
thoroughly.

-Robert
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to