title: Return a html page with first request to a Json Rpc Dispatcher server running locally at port 5000
body: <p>I have  Json Rpc Dispatcher Server running in my local host at port 5000  I need to get a html index page when i visit </p>
  
  <pre><code>http://localhost:5000
  </code></pre>
  
  <p>here is the app.psgi
      use JSON::RPC::Dispatcher;</p>
  
  <pre><code>my $rpc = JSON::RPC::Dispatcher-&gt;new;
  
  $rpc-&gt;register( 'ping', sub { return 'pong' } );
  $rpc-&gt;register( 'echo', sub { return $_[0] } );
  
  sub add_em {
    my @params = @_;
    my $sum = 0;
    $sum += $_ for @params;
    return $sum;
  }
  
  $rpc-&gt;register( 'sum', \&amp;add_em );
  
  # Want to do some fancy error handling? 
  sub guess {
    my ($guess) = @_;
    if ($guess == 10) {
      return 'Correct!';
    }
    elsif ($guess &gt; 10) {
      die [ 986, 'Too high.', $guess];
    }
    else {
      die [ 987, 'Too low.', $guess ];
    }
  }
  $rpc-&gt;register( 'guess', \&amp;guess );
  </code></pre>
  
  <p>For now it only returns json with either a GET guess or sum method request.</p>
  
  <p>I need to have a GET request that will return a html page and load some Javascript maybe with the root request </p>
  
  <pre><code>http://localhost:5000/ 
  </code></pre>