Mercurial > hg > Members > nobuyasu > Consensus
annotate target/scala-2.9.1/src_managed/main/routes_routing.scala @ 9:d050b7fb4cda
create getUserRequests action
author | one |
---|---|
date | Mon, 01 Oct 2012 20:23:19 +0900 |
parents | 2122c50278bd |
children | 6aa0452a7f9f |
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 |
9 | 2 // @HASH:8bd085826bd380a3cbbff589f55d12bed544e145 |
3 // @DATE:Mon Oct 01 20:23:04 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 | |
9 | 22 val controllers_User_create1 = 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 |
9 | 33 // @LINE:13 |
34 val controllers_Application_hello4 = Route("POST", PathPattern(List(StaticPart("/hello")))) | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
35 |
9 | 36 |
37 // @LINE:14 | |
38 val controllers_Application_test5 = Route("GET", PathPattern(List(StaticPart("/test")))) | |
39 | |
40 | |
41 // @LINE:18 | |
42 val controllers_Assets_at6 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) | |
43 | |
44 def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.create(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)""")) | |
0 | 45 |
46 | |
47 def routes:PartialFunction[RequestHeader,Handler] = { | |
48 | |
49 // @LINE:6 | |
50 case controllers_Application_index0(params) => { | |
51 call { | |
52 invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil)) | |
53 } | |
54 } | |
55 | |
56 | |
57 // @LINE:7 | |
9 | 58 case controllers_User_create1(params) => { |
59 call(params.fromPath[String]("name", None)) { (name) => | |
60 invokeHandler(_root_.controllers.User.create(name), HandlerDef(this, "controllers.User", "create", Seq(classOf[String]))) | |
61 } | |
62 } | |
63 | |
64 | |
65 // @LINE:8 | |
66 case controllers_User_getUser2(params) => { | |
67 call(params.fromPath[String]("name", None)) { (name) => | |
68 invokeHandler(_root_.controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String]))) | |
69 } | |
70 } | |
71 | |
72 | |
73 // @LINE:9 | |
74 case controllers_User_getUserRequests3(params) => { | |
75 call(params.fromPath[String]("name", None)) { (name) => | |
76 invokeHandler(_root_.controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String]))) | |
77 } | |
78 } | |
79 | |
80 | |
81 // @LINE:13 | |
82 case controllers_Application_hello4(params) => { | |
0 | 83 call { |
84 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) | |
85 } | |
86 } | |
87 | |
88 | |
9 | 89 // @LINE:14 |
90 case controllers_Application_test5(params) => { | |
91 call { | |
92 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
|
93 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
94 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
95 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
96 |
9 | 97 // @LINE:18 |
98 case controllers_Assets_at6(params) => { | |
0 | 99 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => |
100 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) | |
101 } | |
102 } | |
103 | |
104 } | |
105 | |
106 } | |
107 |