Class AppController
java.lang.Object
org.spincast.demos.supercalifragilisticexpialidocious.AppController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgithubSource(AppRequestContext context) Route Handler for the "/github-source/${username}" Route.voidindexPage(AppRequestContext context) Simple "Hello World" response on the "/" Route.protected voidInit 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.
-