Mercurial > hg > Members > nobuyasu > Consensus
diff target/scala-2.9.1/src_managed/main/routes_routing.scala @ 37:bc3ac73320f9
fix const value FAILED from FAIL
author | one |
---|---|
date | Thu, 04 Oct 2012 00:31:09 +0900 |
parents | be6bbd4967e4 |
children | 1d5c086e069b |
line wrap: on
line diff
--- a/target/scala-2.9.1/src_managed/main/routes_routing.scala Thu Oct 04 00:01:40 2012 +0900 +++ b/target/scala-2.9.1/src_managed/main/routes_routing.scala Thu Oct 04 00:31:09 2012 +0900 @@ -1,6 +1,6 @@ // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes -// @HASH:f5c672b7256d9fa8e950b3ac1ed290083dabeefe -// @DATE:Wed Oct 03 15:56:50 JST 2012 +// @HASH:9e0fa937ed92ecd1dae3165cbcac7424dc77d60f +// @DATE:Wed Oct 03 23:35:23 JST 2012 import play.core._ import play.core.Router._ @@ -55,21 +55,25 @@ // @LINE:18 -val controllers_Claim_getClaimTree10 = Route("GET", PathPattern(List(StaticPart("/consensus/browse/"),DynamicPart("id", """[^/]+""")))) +val controllers_Claim_editClaim10 = Route("POST", PathPattern(List(StaticPart("/claims/edit/"),DynamicPart("id", """[^/]+""")))) -// @LINE:22 -val controllers_Application_hello11 = Route("POST", PathPattern(List(StaticPart("/hello")))) +// @LINE:19 +val controllers_Claim_getClaimTree11 = Route("GET", PathPattern(List(StaticPart("/consensus/browse/"),DynamicPart("id", """[^/]+""")))) // @LINE:23 -val controllers_Application_test12 = Route("GET", PathPattern(List(StaticPart("/test")))) +val controllers_Application_hello12 = Route("POST", PathPattern(List(StaticPart("/hello")))) -// @LINE:27 -val controllers_Assets_at13 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) +// @LINE:24 +val controllers_Application_test13 = Route("GET", PathPattern(List(StaticPart("/test")))) -def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.createUser(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""GET""","""/users/consensus/$name<[^/]+>""","""controllers.User.getUserConsensus(name:String)"""),("""GET""","""/users/claims/$name<[^/]+>""","""controllers.User.getUserClaims(name:String)"""),("""GET""","""/claims/browse/$id<[^/]+>""","""controllers.Claim.getClaimInfo(id:String)"""),("""GET""","""/claims/consensus/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""POST""","""/claims/create""","""controllers.Claim.crateClaim()"""),("""POST""","""/claims/$mentionType<[^/]+>/$id<[^/]+>/create""","""controllers.Claim.createMention(mentionType:String, id:String)"""),("""GET""","""/consensus/browse/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)""")) + +// @LINE:28 +val controllers_Assets_at14 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) + +def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.createUser(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""GET""","""/users/consensus/$name<[^/]+>""","""controllers.User.getUserConsensus(name:String)"""),("""GET""","""/users/claims/$name<[^/]+>""","""controllers.User.getUserClaims(name:String)"""),("""GET""","""/claims/browse/$id<[^/]+>""","""controllers.Claim.getClaimInfo(id:String)"""),("""GET""","""/claims/consensus/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""POST""","""/claims/create""","""controllers.Claim.crateClaim()"""),("""POST""","""/claims/$mentionType<[^/]+>/$id<[^/]+>/create""","""controllers.Claim.createMention(mentionType:String, id:String)"""),("""POST""","""/claims/edit/$id<[^/]+>""","""controllers.Claim.editClaim(id:String)"""),("""GET""","""/consensus/browse/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)""")) def routes:PartialFunction[RequestHeader,Handler] = { @@ -155,31 +159,39 @@ // @LINE:18 -case controllers_Claim_getClaimTree10(params) => { +case controllers_Claim_editClaim10(params) => { + call(params.fromPath[String]("id", None)) { (id) => + invokeHandler(_root_.controllers.Claim.editClaim(id), HandlerDef(this, "controllers.Claim", "editClaim", Seq(classOf[String]))) + } +} + + +// @LINE:19 +case controllers_Claim_getClaimTree11(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String]))) } } -// @LINE:22 -case controllers_Application_hello11(params) => { +// @LINE:23 +case controllers_Application_hello12(params) => { call { invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) } } -// @LINE:23 -case controllers_Application_test12(params) => { +// @LINE:24 +case controllers_Application_test13(params) => { call { invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) } } -// @LINE:27 -case controllers_Assets_at13(params) => { +// @LINE:28 +case controllers_Assets_at14(params) => { call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) }