Created
April 2, 2014 21:19
-
-
Save cfedde/9943420 to your computer and use it in GitHub Desktop.
mojo app mount multiplexer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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