Help for this page

Select Code to Download


  1. or download this
    server {
        listen 80;
    ...
            #try_files $uri $uri/ =404;
        }
    }
    
  2. or download this
    #!/usr/bin/perl
    use Toadfarm -init;
    ...
      "X-Request-Base" => "http://api.example.com/api02"
    };
    start ["http://*:3000"], workers => 8;
    
  3. or download this
    use Mojolicious::Lite;
    get '/' => {text => 'Hello! api01 here'};
    app->start;
    
  4. or download this
    use Mojolicious::Lite;
    get '/' => {text => 'Hello! api02 here'};
    app->start;
    
  5. or download this
    $ ./api_start.pl start
    [2019-02-08 17:17:49.47784] [63828] [info] Mounting api01 with conditi
    +ons
    [2019-02-08 17:17:49.48110] [63828] [info] Mounting api02 with conditi
    +ons
     * Starting the process api_start_pl
       ...done. (already running with pid=63819)