Skip to content

Instantly share code, notes, and snippets.

@msouth
Created March 30, 2013 11:12
Show Gist options
  • Save msouth/5276349 to your computer and use it in GitHub Desktop.
Save msouth/5276349 to your computer and use it in GitHub Desktop.
use Dancer;
use MyTop::MyMiddle::MeetingAlerts;
use Plack::Builder;
my $app = sub {
my $env = shift;
my $request = Dancer::Request->new(env=>$env);
Dancer->dance($request);
};
builder {
#enable "Auth::Basic", authenticator => sub {
# my ( $username, $password ) = @_;
# return $username eq 'admin' && $password eq 's3cr3t';
#;
mount "/alerts_widget" => $app;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment