@Override public void init(Router router) { router.GET().route("/").with(ApplicationController.class, "choice"); router.GET().route("/acesUp").with(ApplicationController.class, "acesUp"); router.GET().route("/SPacesUp").with(ApplicationController.class, "SPacesUp"); router.GET().route("/game").with(ApplicationController.class, "gameGet"); router.GET().route("/SPgame").with(ApplicationController.class, "SPgameGet"); router.POST().route("/dealGame").with(ApplicationController.class, "dealPost"); router.POST().route("/SPdealGame").with(ApplicationController.class, "SPdealPost"); router .POST() .route("/moveCard/{columnFrom}/{columnTo}") .with(ApplicationController.class, "moveCard"); router .POST() .route("/SPmoveCard/{columnFrom}/{columnTo}") .with(ApplicationController.class, "SPmoveCard"); router.POST().route("/removeCard/{column}").with(ApplicationController.class, "removeCard"); router.POST().route("/SPremoveCard/{column}").with(ApplicationController.class, "SPremoveCard"); /////////////////////////////////////////////////////////////////////// // Assets (pictures / javascript) /////////////////////////////////////////////////////////////////////// router .GET() .route("/assets/webjars/{fileName: .*}") .with(AssetsController.class, "serveWebJars"); router.GET().route("/assets/{fileName: .*}").with(AssetsController.class, "serveStatic"); /////////////////////////////////////////////////////////////////////// // Index / Catchall shows index page /////////////////////////////////////////////////////////////////////// // router.GET().route("/.*").with(ApplicationController.class, "index"); }
@Override public void init(Router router) { router.GET().route("/").with(ApplicationController.class, "index"); router.POST().route("/contactForm").with(ApplicationController.class, "SearchProcess"); router.GET().route("/updateOnto").with(ApplicationController.class, "updateOnto"); router.POST().route("/updateOnto").with(ApplicationController.class, "update"); /////////////////////////////////////////////////////////////////////// // Assets (pictures / javascript) /////////////////////////////////////////////////////////////////////// router .GET() .route("/assets/webjars/{fileName: .*}") .with(AssetsController.class, "serveWebJars"); router.GET().route("/assets/{fileName: .*}").with(AssetsController.class, "serveStatic"); /////////////////////////////////////////////////////////////////////// // Index / Catchall shows index page /////////////////////////////////////////////////////////////////////// router.GET().route("/.*").with(ApplicationController.class, "index"); }