Mercurial > hg > Members > nobuyasu > Consensus
view target/scala-2.9.1/src_managed/main/routes_routing.scala @ 42:4321d97da830
modified updateUserConsensusStatus
author | one |
---|---|
date | Thu, 04 Oct 2012 04:15:14 +0900 |
parents | 1d5c086e069b |
children | a76259e2ca9f |
line wrap: on
line source
// @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes // @HASH:6a5ff5e69f08e272e929ec024197558b3eee836d // @DATE:Thu Oct 04 02:27:02 JST 2012 import play.core._ import play.core.Router._ import play.core.j._ import play.api.mvc._ import play.libs.F import Router.queryString object Routes extends Router.Routes { // @LINE:6 val controllers_Application_index0 = Route("GET", PathPattern(List(StaticPart("/")))) // @LINE:7 val controllers_User_getAllUsers1 = Route("GET", PathPattern(List(StaticPart("/users/all")))) // @LINE:8 val controllers_User_createUser2 = Route("PUT", PathPattern(List(StaticPart("/users/create/"),DynamicPart("name", """[^/]+""")))) // @LINE:9 val controllers_User_getUser3 = Route("GET", PathPattern(List(StaticPart("/users/browse/"),DynamicPart("name", """[^/]+""")))) // @LINE:10 val controllers_User_getUserRequests4 = Route("GET", PathPattern(List(StaticPart("/users/requests/"),DynamicPart("name", """[^/]+""")))) // @LINE:11 val controllers_User_getUserConsensus5 = Route("GET", PathPattern(List(StaticPart("/users/consensus/"),DynamicPart("name", """[^/]+""")))) // @LINE:12 val controllers_User_getUserClaims6 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+""")))) // @LINE:13 val controllers_Claim_getClaimInfo7 = Route("GET", PathPattern(List(StaticPart("/claims/browse/"),DynamicPart("id", """[^/]+""")))) // @LINE:14 val controllers_Claim_getClaimTree8 = Route("GET", PathPattern(List(StaticPart("/claims/consensus/"),DynamicPart("id", """[^/]+""")))) // @LINE:15 val controllers_Claim_getClaimTree9 = Route("GET", PathPattern(List(StaticPart("/consensus/browse/"),DynamicPart("id", """[^/]+""")))) // @LINE:16 val controllers_Claim_getUserConsensusStatus10 = Route("GET", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+""")))) // @LINE:17 val controllers_Claim_updateUserConsensusStatus11 = Route("POST", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+"""),StaticPart("/"),DynamicPart("status", """[^/]+""")))) // @LINE:18 val controllers_Claim_crateClaim12 = Route("POST", PathPattern(List(StaticPart("/claims/create")))) // @LINE:19 val controllers_Claim_createMention13 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create")))) // @LINE:20 val controllers_Claim_editClaim14 = Route("POST", PathPattern(List(StaticPart("/claims/edit/"),DynamicPart("id", """[^/]+""")))) // @LINE:24 val controllers_Application_hello15 = Route("POST", PathPattern(List(StaticPart("/hello")))) // @LINE:25 val controllers_Application_test16 = Route("GET", PathPattern(List(StaticPart("/test")))) // @LINE:29 val controllers_Assets_at17 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""GET""","""/users/all""","""controllers.User.getAllUsers()"""),("""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)"""),("""GET""","""/consensus/browse/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""GET""","""/claims/answer/$id<[^/]+>/$name<[^/]+>""","""controllers.Claim.getUserConsensusStatus(id:String, name:String)"""),("""POST""","""/claims/answer/$id<[^/]+>/$name<[^/]+>/$status<[^/]+>""","""controllers.Claim.updateUserConsensusStatus(id:String, name:String, status: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)"""),("""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] = { // @LINE:6 case controllers_Application_index0(params) => { call { invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil)) } } // @LINE:7 case controllers_User_getAllUsers1(params) => { call { invokeHandler(_root_.controllers.User.getAllUsers(), HandlerDef(this, "controllers.User", "getAllUsers", Nil)) } } // @LINE:8 case controllers_User_createUser2(params) => { call(params.fromPath[String]("name", None)) { (name) => invokeHandler(_root_.controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String]))) } } // @LINE:9 case controllers_User_getUser3(params) => { call(params.fromPath[String]("name", None)) { (name) => invokeHandler(_root_.controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String]))) } } // @LINE:10 case controllers_User_getUserRequests4(params) => { call(params.fromPath[String]("name", None)) { (name) => invokeHandler(_root_.controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String]))) } } // @LINE:11 case controllers_User_getUserConsensus5(params) => { call(params.fromPath[String]("name", None)) { (name) => invokeHandler(_root_.controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String]))) } } // @LINE:12 case controllers_User_getUserClaims6(params) => { call(params.fromPath[String]("name", None)) { (name) => invokeHandler(_root_.controllers.User.getUserClaims(name), HandlerDef(this, "controllers.User", "getUserClaims", Seq(classOf[String]))) } } // @LINE:13 case controllers_Claim_getClaimInfo7(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.getClaimInfo(id), HandlerDef(this, "controllers.Claim", "getClaimInfo", Seq(classOf[String]))) } } // @LINE:14 case controllers_Claim_getClaimTree8(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String]))) } } // @LINE:15 case controllers_Claim_getClaimTree9(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String]))) } } // @LINE:16 case controllers_Claim_getUserConsensusStatus10(params) => { call(params.fromPath[String]("id", None), params.fromPath[String]("name", None)) { (id, name) => invokeHandler(_root_.controllers.Claim.getUserConsensusStatus(id, name), HandlerDef(this, "controllers.Claim", "getUserConsensusStatus", Seq(classOf[String], classOf[String]))) } } // @LINE:17 case controllers_Claim_updateUserConsensusStatus11(params) => { call(params.fromPath[String]("id", None), params.fromPath[String]("name", None), params.fromPath[String]("status", None)) { (id, name, status) => invokeHandler(_root_.controllers.Claim.updateUserConsensusStatus(id, name, status), HandlerDef(this, "controllers.Claim", "updateUserConsensusStatus", Seq(classOf[String], classOf[String], classOf[String]))) } } // @LINE:18 case controllers_Claim_crateClaim12(params) => { call { invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil)) } } // @LINE:19 case controllers_Claim_createMention13(params) => { call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) => invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String]))) } } // @LINE:20 case controllers_Claim_editClaim14(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.editClaim(id), HandlerDef(this, "controllers.Claim", "editClaim", Seq(classOf[String]))) } } // @LINE:24 case controllers_Application_hello15(params) => { call { invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) } } // @LINE:25 case controllers_Application_test16(params) => { call { invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) } } // @LINE:29 case controllers_Assets_at17(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]))) } } } }