java.lang.Object
org.spincast.demos.supercalifragilisticexpialidocious.AppController

public class AppController extends Object
  • Constructor Details

    • AppController

      public AppController()
  • Method Details

    • init

      @Inject protected void init(Router<AppRequestContext,DefaultWebsocketContext> router)
      Init method : we inject the Router and add some Routes to it.
    • indexPage

      public void indexPage(AppRequestContext context)
      Simple "Hello World" response on the "/" Route.
    • githubSource

      public void githubSource(AppRequestContext context)
      Route Handler for the "/github-source/${username}" Route. We retrieve the HTML source of the GitHub page associated with the specified username, and return it in a Json object.