Mercurial > hg > Members > nobuyasu > Consensus
annotate target/scala-2.9.1/src_managed/main/routes_routing.scala @ 26:ad7cfb1f9d03
modified checkconsensus
author | one |
---|---|
date | Wed, 03 Oct 2012 03:52:03 +0900 |
parents | a134edaebf6f |
children | 80b5628f17d8 |
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 |
26 | 2 // @HASH:18c4a2571c38e53750b3b1ef9f8731961460e5c9 |
3 // @DATE:Wed Oct 03 02:51:34 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 |
42 val controllers_Claim_crateClaim6 = Route("POST", PathPattern(List(StaticPart("/claims/create")))) | |
9 | 43 |
44 | |
26 | 45 // @LINE:14 |
46 val controllers_Claim_createMention7 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create")))) | |
47 | |
48 | |
11 | 49 // @LINE:17 |
26 | 50 val controllers_Application_hello8 = Route("POST", PathPattern(List(StaticPart("/hello")))) |
9 | 51 |
11 | 52 |
17 | 53 // @LINE:18 |
26 | 54 val controllers_Application_test9 = Route("GET", PathPattern(List(StaticPart("/test")))) |
11 | 55 |
17 | 56 |
57 // @LINE:22 | |
26 | 58 val controllers_Assets_at10 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) |
17 | 59 |
26 | 60 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)"""),("""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 | 61 |
62 | |
63 def routes:PartialFunction[RequestHeader,Handler] = { | |
64 | |
65 // @LINE:6 | |
66 case controllers_Application_index0(params) => { | |
67 call { | |
68 invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil)) | |
69 } | |
70 } | |
71 | |
72 | |
73 // @LINE:7 | |
14 | 74 case controllers_User_createUser1(params) => { |
9 | 75 call(params.fromPath[String]("name", None)) { (name) => |
14 | 76 invokeHandler(_root_.controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String]))) |
9 | 77 } |
78 } | |
79 | |
80 | |
81 // @LINE:8 | |
82 case controllers_User_getUser2(params) => { | |
83 call(params.fromPath[String]("name", None)) { (name) => | |
84 invokeHandler(_root_.controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String]))) | |
85 } | |
86 } | |
87 | |
88 | |
89 // @LINE:9 | |
90 case controllers_User_getUserRequests3(params) => { | |
91 call(params.fromPath[String]("name", None)) { (name) => | |
92 invokeHandler(_root_.controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String]))) | |
93 } | |
94 } | |
95 | |
96 | |
11 | 97 // @LINE:10 |
98 case controllers_User_getUserConsensus4(params) => { | |
99 call(params.fromPath[String]("name", None)) { (name) => | |
100 invokeHandler(_root_.controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String]))) | |
101 } | |
102 } | |
103 | |
104 | |
105 // @LINE:11 | |
106 case controllers_User_getUserClaims5(params) => { | |
107 call(params.fromPath[String]("name", None)) { (name) => | |
108 invokeHandler(_root_.controllers.User.getUserClaims(name), HandlerDef(this, "controllers.User", "getUserClaims", Seq(classOf[String]))) | |
109 } | |
110 } | |
111 | |
112 | |
17 | 113 // @LINE:13 |
114 case controllers_Claim_crateClaim6(params) => { | |
115 call { | |
116 invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil)) | |
117 } | |
118 } | |
119 | |
120 | |
26 | 121 // @LINE:14 |
122 case controllers_Claim_createMention7(params) => { | |
123 call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) => | |
124 invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String]))) | |
125 } | |
126 } | |
127 | |
128 | |
17 | 129 // @LINE:17 |
26 | 130 case controllers_Application_hello8(params) => { |
0 | 131 call { |
132 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) | |
133 } | |
134 } | |
135 | |
136 | |
17 | 137 // @LINE:18 |
26 | 138 case controllers_Application_test9(params) => { |
9 | 139 call { |
140 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
|
141 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
142 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
143 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
144 |
17 | 145 // @LINE:22 |
26 | 146 case controllers_Assets_at10(params) => { |
0 | 147 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => |
148 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) | |
149 } | |
150 } | |
151 | |
152 } | |
153 | |
154 } | |
155 |