Catalyst Maintainable web apps made easy! #125

Actions for API key management

sub get_api_key :Local {
    my ($self, $c) = @_;
    $c->detach('/not_found') unless $c->user;

    my $key = $c->user->get_api_key;
    $c->stash->{key} = $key->apikey;
    $c->view->template('account/api_key');
}
continued...
Copyright © 2007 Jonathan Rockway