Mercurial > hg > Members > nobuyasu > Consensus
annotate target/scala-2.9.1/src_managed/main/routes_routing.scala @ 30:80b5628f17d8
modified ClaimModel/getInfo action
author | one |
---|---|
date | Wed, 03 Oct 2012 14:27:44 +0900 |
parents | ad7cfb1f9d03 |
children | be6bbd4967e4 |
rev | line source |
---|---|
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
1 // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes |
30 | 2 // @HASH:4e0ef425af6fa19939155c7491434fa337e3afc9 |
3 // @DATE:Wed Oct 03 13:57:35 JST 2012 | |
0 | 4 |
5 import play.core._ | |
6 import play.core.Router._ | |
7 import play.core.j._ | |
8 | |
9 import play.api.mvc._ | |
10 import play.libs.F | |
11 | |
12 import Router.queryString | |
13 | |
14 object Routes extends Router.Routes { | |
15 | |
16 | |
17 // @LINE:6 | |
18 val controllers_Application_index0 = Route("GET", PathPattern(List(StaticPart("/")))) | |
19 | |
20 | |
21 // @LINE:7 | |
14 | 22 val controllers_User_createUser1 = Route("PUT", PathPattern(List(StaticPart("/users/create/"),DynamicPart("name", """[^/]+""")))) |
0 | 23 |
24 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
25 // @LINE:8 |
9 | 26 val controllers_User_getUser2 = Route("GET", PathPattern(List(StaticPart("/users/browse/"),DynamicPart("name", """[^/]+""")))) |
27 | |
28 | |
29 // @LINE:9 | |
30 val controllers_User_getUserRequests3 = Route("GET", PathPattern(List(StaticPart("/users/requests/"),DynamicPart("name", """[^/]+""")))) | |
0 | 31 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
32 |
11 | 33 // @LINE:10 |
34 val controllers_User_getUserConsensus4 = Route("GET", PathPattern(List(StaticPart("/users/consensus/"),DynamicPart("name", """[^/]+""")))) | |
35 | |
36 | |
37 // @LINE:11 | |
38 val controllers_User_getUserClaims5 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+""")))) | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
39 |
9 | 40 |
17 | 41 // @LINE:13 |
30 | 42 val controllers_Claim_getClaimInfo6 = Route("GET", PathPattern(List(StaticPart("/claims/browse/"),DynamicPart("id", """[^/]+""")))) |
9 | 43 |
44 | |
26 | 45 // @LINE:14 |
30 | 46 val controllers_Claim_getClaimTree7 = Route("GET", PathPattern(List(StaticPart("/claims/consensus/"),DynamicPart("id", """[^/]+""")))) |
47 | |
48 | |
49 // @LINE:16 | |
50 val controllers_Claim_crateClaim8 = Route("POST", PathPattern(List(StaticPart("/claims/create")))) | |
26 | 51 |
52 | |
11 | 53 // @LINE:17 |
30 | 54 val controllers_Claim_createMention9 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create")))) |
11 | 55 |
17 | 56 |
57 // @LINE:22 | |
30 | 58 val controllers_Application_hello10 = Route("POST", PathPattern(List(StaticPart("/hello")))) |
59 | |
60 | |
61 // @LINE:23 | |
62 val controllers_Application_test11 = Route("GET", PathPattern(List(StaticPart("/test")))) | |
17 | 63 |
30 | 64 |
65 // @LINE:27 | |
66 val controllers_Assets_at12 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) | |
67 | |
68 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""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)""")) | |
0 | 69 |
70 | |
71 def routes:PartialFunction[RequestHeader,Handler] = { | |
72 | |
73 // @LINE:6 | |
74 case controllers_Application_index0(params) => { | |
75 call { | |
76 invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil)) | |
77 } | |
78 } | |
79 | |
80 | |
81 // @LINE:7 | |
14 | 82 case controllers_User_createUser1(params) => { |
9 | 83 call(params.fromPath[String]("name", None)) { (name) => |
14 | 84 invokeHandler(_root_.controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String]))) |
9 | 85 } |
86 } | |
87 | |
88 | |
89 // @LINE:8 | |
90 case controllers_User_getUser2(params) => { | |
91 call(params.fromPath[String]("name", None)) { (name) => | |
92 invokeHandler(_root_.controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String]))) | |
93 } | |
94 } | |
95 | |
96 | |
97 // @LINE:9 | |
98 case controllers_User_getUserRequests3(params) => { | |
99 call(params.fromPath[String]("name", None)) { (name) => | |
100 invokeHandler(_root_.controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String]))) | |
101 } | |
102 } | |
103 | |
104 | |
11 | 105 // @LINE:10 |
106 case controllers_User_getUserConsensus4(params) => { | |
107 call(params.fromPath[String]("name", None)) { (name) => | |
108 invokeHandler(_root_.controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String]))) | |
109 } | |
110 } | |
111 | |
112 | |
113 // @LINE:11 | |
114 case controllers_User_getUserClaims5(params) => { | |
115 call(params.fromPath[String]("name", None)) { (name) => | |
116 invokeHandler(_root_.controllers.User.getUserClaims(name), HandlerDef(this, "controllers.User", "getUserClaims", Seq(classOf[String]))) | |
117 } | |
118 } | |
119 | |
120 | |
17 | 121 // @LINE:13 |
30 | 122 case controllers_Claim_getClaimInfo6(params) => { |
123 call(params.fromPath[String]("id", None)) { (id) => | |
124 invokeHandler(_root_.controllers.Claim.getClaimInfo(id), HandlerDef(this, "controllers.Claim", "getClaimInfo", Seq(classOf[String]))) | |
125 } | |
126 } | |
127 | |
128 | |
129 // @LINE:14 | |
130 case controllers_Claim_getClaimTree7(params) => { | |
131 call(params.fromPath[String]("id", None)) { (id) => | |
132 invokeHandler(_root_.controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String]))) | |
133 } | |
134 } | |
135 | |
136 | |
137 // @LINE:16 | |
138 case controllers_Claim_crateClaim8(params) => { | |
17 | 139 call { |
140 invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil)) | |
141 } | |
142 } | |
143 | |
144 | |
30 | 145 // @LINE:17 |
146 case controllers_Claim_createMention9(params) => { | |
26 | 147 call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) => |
148 invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String]))) | |
149 } | |
150 } | |
151 | |
152 | |
30 | 153 // @LINE:22 |
154 case controllers_Application_hello10(params) => { | |
0 | 155 call { |
156 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) | |
157 } | |
158 } | |
159 | |
160 | |
30 | 161 // @LINE:23 |
162 case controllers_Application_test11(params) => { | |
9 | 163 call { |
164 invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
165 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
166 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
167 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
168 |
30 | 169 // @LINE:27 |
170 case controllers_Assets_at12(params) => { | |
0 | 171 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => |
172 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) | |
173 } | |
174 } | |
175 | |
176 } | |
177 | |
178 } | |
179 |