Mercurial > hg > Members > nobuyasu > Consensus
view target/scala-2.9.1/src_managed/main/routes_routing.scala @ 93:d66ac07e1c36 draft
modified createMention action
author | one |
---|---|
date | Tue, 12 Mar 2013 17:44:03 +0900 |
parents | d45f76774fd8 |
children |
line wrap: on
line source
// @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes // @HASH:140c6d47b554b05b65d9fef9de4b3aaeb403b922 // @DATE:Tue Mar 12 16:12:18 JST 2013 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:7 val controllers_User_getAllUsers0 = Route("GET", PathPattern(List(StaticPart("/users/all")))) // @LINE:8 val controllers_User_createUser1 = Route("PUT", PathPattern(List(StaticPart("/users/create/"),DynamicPart("name", """[^/]+""")))) // @LINE:9 val controllers_User_getUser2 = Route("GET", PathPattern(List(StaticPart("/users/browse/"),DynamicPart("name", """[^/]+""")))) // @LINE:10 val controllers_User_getUserRequests3 = Route("GET", PathPattern(List(StaticPart("/users/requests/"),DynamicPart("name", """[^/]+""")))) // @LINE:11 val controllers_User_getUserConsensus4 = Route("GET", PathPattern(List(StaticPart("/users/consensus/"),DynamicPart("name", """[^/]+""")))) // @LINE:12 val controllers_User_getUserClaims5 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+""")))) // @LINE:13 val controllers_Claim_getClaimInfo6 = Route("GET", PathPattern(List(StaticPart("/claims/browse/"),DynamicPart("id", """[^/]+""")))) // @LINE:14 val controllers_Claim_getClaimTree7 = Route("GET", PathPattern(List(StaticPart("/claims/consensus/"),DynamicPart("id", """[^/]+""")))) // @LINE:15 val controllers_Claim_getClaimTree8 = Route("GET", PathPattern(List(StaticPart("/consensus/browse/"),DynamicPart("id", """[^/]+""")))) // @LINE:16 val controllers_Claim_getUserConsensusStatus9 = Route("GET", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+""")))) // @LINE:17 val controllers_Claim_updateUserConsensusStatus10 = Route("POST", PathPattern(List(StaticPart("/claims/answer/"),DynamicPart("id", """[^/]+"""),StaticPart("/"),DynamicPart("name", """[^/]+"""),StaticPart("/"),DynamicPart("status", """[^/]+""")))) // @LINE:18 val controllers_Claim_createClaim11 = Route("POST", PathPattern(List(StaticPart("/claims/create")))) // @LINE:19 val controllers_Claim_createMention12 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create")))) // @LINE:20 val controllers_Claim_editClaim13 = Route("POST", PathPattern(List(StaticPart("/claims/edit/"),DynamicPart("id", """[^/]+""")))) // @LINE:23 val controllers_User_getUserLatestConsensus14 = Route("GET", PathPattern(List(StaticPart("/users/latest/consensus/"),DynamicPart("name", """[^/]+""")))) // @LINE:24 val controllers_Claim_getLatestClaimTree15 = Route("GET", PathPattern(List(StaticPart("/consensus/browse/latest/"),DynamicPart("id", """[^/]+""")))) // @LINE:25 val controllers_User_getUserLatestClaims16 = Route("GET", PathPattern(List(StaticPart("/users/latest/claims/"),DynamicPart("name", """[^/]+""")))) // @LINE:28 val controllers_Claim_getClaimRevision17 = Route("GET", PathPattern(List(StaticPart("/claims/get/revision/"),DynamicPart("id", """[^/]+""")))) // @LINE:31 val controllers_Claim_copyClaims18 = Route("GET", PathPattern(List(StaticPart("/copytree/"),DynamicPart("id", """[^/]+""")))) // @LINE:34 val controllers_Claim_reset19 = Route("GET", PathPattern(List(StaticPart("/reset")))) // @LINE:37 val controllers_Application_hello20 = Route("POST", PathPattern(List(StaticPart("/hello")))) // @LINE:38 val controllers_Application_test21 = Route("GET", PathPattern(List(StaticPart("/test")))) // @LINE:43 val controllers_Assets_at22 = Route("GET", PathPattern(List(StaticPart("/")))) // @LINE:44 val controllers_Assets_at23 = Route("GET", PathPattern(List(StaticPart("/"),DynamicPart("file", """.+""")))) def documentation = List(("""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.createClaim()"""),("""POST""","""/claims/$mentionType<[^/]+>/$id<[^/]+>/create""","""controllers.Claim.createMention(mentionType:String, id:String)"""),("""POST""","""/claims/edit/$id<[^/]+>""","""controllers.Claim.editClaim(id:String)"""),("""GET""","""/users/latest/consensus/$name<[^/]+>""","""controllers.User.getUserLatestConsensus(name:String)"""),("""GET""","""/consensus/browse/latest/$id<[^/]+>""","""controllers.Claim.getLatestClaimTree(id:String)"""),("""GET""","""/users/latest/claims/$name<[^/]+>""","""controllers.User.getUserLatestClaims(name:String)"""),("""GET""","""/claims/get/revision/$id<[^/]+>""","""controllers.Claim.getClaimRevision(id:String)"""),("""GET""","""/copytree/$id<[^/]+>""","""controllers.Claim.copyClaims(id:String)"""),("""GET""","""/reset""","""controllers.Claim.reset()"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/""","""controllers.Assets.at(path:String = "/public/viewer", file:String = "index.html")"""),("""GET""","""/$file<.+>""","""controllers.Assets.at(path:String = "/public/viewer", file:String)""")) def routes:PartialFunction[RequestHeader,Handler] = { // @LINE:7 case controllers_User_getAllUsers0(params) => { call { invokeHandler(_root_.controllers.User.getAllUsers(), HandlerDef(this, "controllers.User", "getAllUsers", Nil)) } } // @LINE:8 case controllers_User_createUser1(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_getUser2(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_getUserRequests3(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_getUserConsensus4(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_getUserClaims5(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_getClaimInfo6(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_getClaimTree7(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_getClaimTree8(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_getUserConsensusStatus9(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_updateUserConsensusStatus10(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_createClaim11(params) => { call { invokeHandler(_root_.controllers.Claim.createClaim(), HandlerDef(this, "controllers.Claim", "createClaim", Nil)) } } // @LINE:19 case controllers_Claim_createMention12(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_editClaim13(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.editClaim(id), HandlerDef(this, "controllers.Claim", "editClaim", Seq(classOf[String]))) } } // @LINE:23 case controllers_User_getUserLatestConsensus14(params) => { call(params.fromPath[String]("name", None)) { (name) => invokeHandler(_root_.controllers.User.getUserLatestConsensus(name), HandlerDef(this, "controllers.User", "getUserLatestConsensus", Seq(classOf[String]))) } } // @LINE:24 case controllers_Claim_getLatestClaimTree15(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.getLatestClaimTree(id), HandlerDef(this, "controllers.Claim", "getLatestClaimTree", Seq(classOf[String]))) } } // @LINE:25 case controllers_User_getUserLatestClaims16(params) => { call(params.fromPath[String]("name", None)) { (name) => invokeHandler(_root_.controllers.User.getUserLatestClaims(name), HandlerDef(this, "controllers.User", "getUserLatestClaims", Seq(classOf[String]))) } } // @LINE:28 case controllers_Claim_getClaimRevision17(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.getClaimRevision(id), HandlerDef(this, "controllers.Claim", "getClaimRevision", Seq(classOf[String]))) } } // @LINE:31 case controllers_Claim_copyClaims18(params) => { call(params.fromPath[String]("id", None)) { (id) => invokeHandler(_root_.controllers.Claim.copyClaims(id), HandlerDef(this, "controllers.Claim", "copyClaims", Seq(classOf[String]))) } } // @LINE:34 case controllers_Claim_reset19(params) => { call { invokeHandler(_root_.controllers.Claim.reset(), HandlerDef(this, "controllers.Claim", "reset", Nil)) } } // @LINE:37 case controllers_Application_hello20(params) => { call { invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) } } // @LINE:38 case controllers_Application_test21(params) => { call { invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) } } // @LINE:43 case controllers_Assets_at22(params) => { call(Param[String]("path", Right("/public/viewer")), Param[String]("file", Right("index.html"))) { (path, file) => invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) } } // @LINE:44 case controllers_Assets_at23(params) => { call(Param[String]("path", Right("/public/viewer")), params.fromPath[String]("file", None)) { (path, file) => invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) } } } }