Skip to content

Instantly share code, notes, and snippets.

@cfedde
Created April 2, 2014 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfedde/9943420 to your computer and use it in GitHub Desktop.
Save cfedde/9943420 to your computer and use it in GitHub Desktop.
mojo app mount multiplexer
#!/usr/bin/env perl
use Mojolicious::Lite;
#my $basedir = "/home/cfedde/src/";
my $basedir = "/var/www/mojo/";
plugin 'Config';
plugin Mount => ( '/lrn' => "$basedir/lrn_perl_webservice/lrn_query" );
plugin Mount => ( '/imrc' => "$basedir/IMRC_Daemon/imrc_api" );
plugin Mount => ( '/fresh' => "$basedir/fresh/bin/Fresh" );
plugin Mount => ( '/Fon' => "$basedir/Fon/Fon" );
plugin Mount => ( '/inventory' => "$basedir/inventorywebapi/InventoryWebAPI" );
plugin Mount => ( '/ldap' => "$basedir/ldapauthapi/ldapauthapi" );
plugin Mount => ( '/bcv_oci_api' => "$basedir/BCV-RCF/BCV_OCI_API" );
#plugin Mount => ( '/usercontrol' => "$basedir/usercontrol/UserControl" );
plugin Mount =>
( '/Boot_Log_Widget' => "$basedir/Boot_Log_Widget/Boot_Log_Widget" );
get '/' => sub {
my $s = shift;
} => 'index';
app->moniker('mount');
app->secret(["too many secrets"]);
app->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment