Mercurial > hg > Members > nobuyasu > Consensus
view target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala @ 0:3d01ca5b26ed
add
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Oct 2012 16:07:59 +0900 (2012-10-01) |
parents | |
children | d6afc58ce3f5 |
line wrap: on
line source
// @SOURCE:/Users/aotokage/testProgram/play/Consensus/conf/routes // @HASH:ecac9e4ebd9d2d83022704b008c2c05a5753b005 // @DATE:Mon Oct 01 15:42:52 JST 2012 import play.core._ import play.core.Router._ import play.core.j._ import play.api.mvc._ import play.libs.F import Router.queryString // @LINE:11 // @LINE:7 // @LINE:6 package controllers { // @LINE:7 // @LINE:6 class ReverseApplication { // @LINE:6 def index() = { Call("GET", "/") } // @LINE:7 def hello() = { Call("POST", "/db/data/node") } } // @LINE:11 class ReverseAssets { // @LINE:11 def at(file:String) = { Call("GET", "/assets/" + implicitly[PathBindable[String]].unbind("file", file)) } } } // @LINE:11 // @LINE:7 // @LINE:6 package controllers.javascript { // @LINE:7 // @LINE:6 class ReverseApplication { // @LINE:6 def index = JavascriptReverseRoute( "controllers.Application.index", """ function() { return _wA({method:"GET", url:"/"}) } """ ) // @LINE:7 def hello = JavascriptReverseRoute( "controllers.Application.hello", """ function() { return _wA({method:"POST", url:"/db/data/node"}) } """ ) } // @LINE:11 class ReverseAssets { // @LINE:11 def at = JavascriptReverseRoute( "controllers.Assets.at", """ function(file) { return _wA({method:"GET", url:"/assets/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("file", file)}) } """ ) } } // @LINE:11 // @LINE:7 // @LINE:6 package controllers.ref { // @LINE:7 // @LINE:6 class ReverseApplication { // @LINE:6 def index() = new play.api.mvc.HandlerRef( controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Seq()) ) // @LINE:7 def hello() = new play.api.mvc.HandlerRef( controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Seq()) ) } // @LINE:11 class ReverseAssets { // @LINE:11 def at(path:String, file:String) = new play.api.mvc.HandlerRef( controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])) ) } }