documentation/manual/working/javaGuide/advanced/routing/code/javaguide/binder/controllers/Application.java
public Result javascriptRoutes2(Http.Request request) {
    return ok(
        // #javascript-router-resource-custom-method
        JavaScriptReverseRouter.create(
            "jsRoutes",
            "myAjaxMethod",
            request.host(),
            routes.javascript.Users.list(),
            routes.javascript.Users.get())
        // #javascript-router-resource-custom-method
        )
        .as(Http.MimeTypes.JAVASCRIPT);
  }
public Result javascriptRoutes2(Http.Request request) {
    return ok(
        // #javascript-router-resource-custom-method
        JavaScriptReverseRouter.create(
            "jsRoutes",
            "myAjaxMethod",
            request.host(),
            routes.javascript.Users.list(),
            routes.javascript.Users.get())
        // #javascript-router-resource-custom-method
        )
        .as(Http.MimeTypes.JAVASCRIPT);
  }
public Result javascriptRoutes2 ( Http . Request request ) { return ok ( // #javascript-router-resource-custom-method JavaScriptReverseRouter . create ( "jsRoutes" , "myAjaxMethod" , request . host ( ) , routes . javascript . Users . list ( ) , routes . javascript . Users . get ( ) ) // #javascript-router-resource-custom-method ) . as ( Http . MimeTypes . JAVASCRIPT ) ; }
#javascript-router-resource
#javascript - router - resource