title: Sub-Route Remote Call with Tink Web
body: <p>I defined a sub-route and i want to call it from my JsClient.</p>
  
  <p>I tried to follow the Quick Start instructions but sub-route call isn't documented.</p>
  
  <pre><code>class App {
  
      public static function main() {
          var remote = new Remote&lt;ApiRoute&gt;(new JsClient(), new RemoteEndpoint(new Host("localhost",8080)));
          remote.api.upload().handle(function(o) switch o {
              case Success(result): trace(result);
              case Failure(e): trace(e);
          });
      }
  
  }
  
  class ApiRoute {
      public function new() { }
  
      @:sub public var api = new Api();
  }
  
  class Api {
  
      public function new() { }
  
      @:post('/upload')
      public function upload(){
          return '';
      }
  
  }
  
  </code></pre>
  
  <p>The compiler doesn't like it :
  Void -> tink.web.proxy.Remote1 has no field upload</p>