Skip to content

Instantly share code, notes, and snippets.

@preaction
Created September 25, 2018 03:25
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 preaction/b0dde0dba964034d089cb0e6818cbda2 to your computer and use it in GitHub Desktop.
Save preaction/b0dde0dba964034d089cb0e6818cbda2 to your computer and use it in GitHub Desktop.
package Local::Controller::Kubernetes;
BEGIN { $INC{'Local/Controller/Kubernetes.pm'} = __FILE__ }
use Mojo::Base 'Mojolicious::Controller';
sub log { shift->render( text => "Hello, World" ) }
package main;
use Mojolicious::Lite;
unshift @{ app->routes->namespaces }, 'Local::Controller';
app->routes->get( '/' )->to( 'kubernetes#log' );
app->start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment