Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: first steps with Mojolicious::Lite

by trippledubs (Deacon)
on Jun 16, 2020 at 01:48 UTC ( [id://11118114]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $onlyLoggedIn = $r->under('/admin' => \&loggedIn);
    $onlyLoggedIn->post('uploadFile')->to('files#insert');
    ...
        $self->render(data => '',status => $responseCode);
    }
    
  2. or download this
        $self->helper( onlyauth => sub {
            my ($c,$block) = @_;
    ...
                return $block->() if $block;
            }
        });
    
  3. or download this
    %= onlyauth begin
        %= include 'adminbar'
    % end
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (9)
As of 2024-04-23 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found