Class AppController
java.lang.Object
org.spincast.demos.supercalifragilisticexpialidocious.AppController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
githubSource
(AppRequestContext context) Route Handler for the "/github-source/${username}" Route.void
indexPage
(AppRequestContext context) Simple "Hello World" response on the "/" Route.protected void
Init method : we inject the Router and add some Routes to it.
-
Constructor Details
-
AppController
public AppController()
-
-
Method Details
-
init
Init method : we inject the Router and add some Routes to it. -
indexPage
Simple "Hello World" response on the "/" Route. -
githubSource
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.
-