Mercurial > hg > Members > nobuyasu > Consensus
diff target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala @ 14:792fdb0c10bf
add ClaimModel.java
author | one |
---|---|
date | Tue, 02 Oct 2012 11:40:20 +0900 |
parents | 6aa0452a7f9f |
children | a134edaebf6f |
line wrap: on
line diff
--- a/target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala Tue Oct 02 11:39:39 2012 +0900 +++ b/target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala Tue Oct 02 11:40:20 2012 +0900 @@ -1,6 +1,6 @@ // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes -// @HASH:2d2bd39dcc02b26740ae9e09c23564ce88dbbf35 -// @DATE:Mon Oct 01 20:46:41 JST 2012 +// @HASH:c5bff1896dbd0de70fbb37de9930bcba9c8300e6 +// @DATE:Tue Oct 02 10:41:54 JST 2012 import play.core._ import play.core.Router._ @@ -81,6 +81,12 @@ +// @LINE:7 +def createUser(name:String) = { + Call("PUT", "/users/create/" + implicitly[PathBindable[String]].unbind("name", name)) +} + + // @LINE:9 def getUserRequests(name:String) = { Call("GET", "/users/requests/" + implicitly[PathBindable[String]].unbind("name", name)) @@ -93,12 +99,6 @@ } -// @LINE:7 -def create(name:String) = { - Call("PUT", "/users/create/" + implicitly[PathBindable[String]].unbind("name", name)) -} - - // @LINE:10 def getUserConsensus(name:String) = { Call("GET", "/users/consensus/" + implicitly[PathBindable[String]].unbind("name", name)) @@ -208,6 +208,17 @@ +// @LINE:7 +def createUser = JavascriptReverseRoute( + "controllers.User.createUser", + """ + function(name) { + return _wA({method:"PUT", url:"/users/create/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) + } + """ +) + + // @LINE:9 def getUserRequests = JavascriptReverseRoute( "controllers.User.getUserRequests", @@ -230,17 +241,6 @@ ) -// @LINE:7 -def create = JavascriptReverseRoute( - "controllers.User.create", - """ - function(name) { - return _wA({method:"PUT", url:"/users/create/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) - } - """ -) - - // @LINE:10 def getUserConsensus = JavascriptReverseRoute( "controllers.User.getUserConsensus", @@ -340,6 +340,12 @@ +// @LINE:7 +def createUser(name:String) = new play.api.mvc.HandlerRef( + controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String])) +) + + // @LINE:9 def getUserRequests(name:String) = new play.api.mvc.HandlerRef( controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String])) @@ -352,12 +358,6 @@ ) -// @LINE:7 -def create(name:String) = new play.api.mvc.HandlerRef( - controllers.User.create(name), HandlerDef(this, "controllers.User", "create", Seq(classOf[String])) -) - - // @LINE:10 def getUserConsensus(name:String) = new play.api.mvc.HandlerRef( controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String]))