Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cto.conf
- {
- WFHost => 'http://10.4.33.117/thinclient/MyService.asmx',
- }
- # helpers
- package Cto::Helpers;
- use base 'Mojolicious::Plugin';
- use Mojolicious::Plugin::Config;
- sub register {
- $app->helper(
- WFrequest => sub {
- my ($self, $method, $body) = @_;
- my $config = $self->plugin('Config');
- my $result = {};
- my $wf_url = $config->{'WFHost'};
- ...
- }
- );
- }
- 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement