Mercurial > hg > Members > nobuyasu > Consensus
changeset 80:712422332f3d draft
modified public/viewer/index.html
line wrap: on
line diff
--- a/logs/application.log Fri Mar 08 17:21:47 2013 +0900 +++ b/logs/application.log Fri Mar 08 17:37:22 2013 +0900 @@ -79,3 +79,93 @@ 2013-03-08 16:41:12,395 - [INFO] - from play in play-akka.actor.default-dispatcher-7 Application started (Dev) +2013-03-08 17:16:30,131 - [ERROR] - from application in New I/O worker #7 + + +! Internal server error, for request [GET /] -> + +sbt.PlayExceptions$CompilationException: Compilation error [value getLatestUserConsesus is not a member of object controllers.User] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] + at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:229) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:226) ~[na:na] + at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:226) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:224) ~[na:na] + at scala.Either$LeftProjection.map(Either.scala:183) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3.apply(PlayReloader.scala:224) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3.apply(PlayReloader.scala:219) ~[na:na] + at scala.Option.getOrElse(Option.scala:108) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2.reload(PlayReloader.scala:219) ~[na:na] + at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] + at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] + at akka.dispatch.Future$$anon$3.liftedTree1$1(Future.scala:195) ~[akka-actor.jar:2.0.2] + at akka.dispatch.Future$$anon$3.run(Future.scala:194) ~[akka-actor.jar:2.0.2] + at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2] + +2013-03-08 17:17:39,241 - [INFO] - from application in play-akka.actor.default-dispatcher-8 +Application shutdown... + +2013-03-08 17:17:39,260 - [INFO] - from play in play-akka.actor.default-dispatcher-8 +Application started (Dev) + +2013-03-08 17:17:55,060 - [INFO] - from application in play-akka.actor.default-dispatcher-10 +Application shutdown... + +2013-03-08 17:17:55,078 - [INFO] - from play in play-akka.actor.default-dispatcher-10 +Application started (Dev) + +2013-03-08 17:18:10,608 - [ERROR] - from application in New I/O worker #13 + + +! Internal server error, for request [GET /users/consensus/Akifumi?_=1362730689442] -> + +sbt.PlayExceptions$CompilationException: Compilation error [value getLatestUserConsensus is not a member of object controllers.User] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12$$anonfun$apply$13.apply(PlayReloader.scala:229) ~[na:na] + at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:229) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4$$anonfun$apply$12.apply(PlayReloader.scala:226) ~[na:na] + at scala.Option.map(Option.scala:133) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:226) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3$$anonfun$4.apply(PlayReloader.scala:224) ~[na:na] + at scala.Either$LeftProjection.map(Either.scala:183) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3.apply(PlayReloader.scala:224) ~[na:na] + at sbt.PlayReloader$$anon$2$$anonfun$reload$3.apply(PlayReloader.scala:219) ~[na:na] + at scala.Option.getOrElse(Option.scala:108) ~[scala-library.jar:0.11.3] + at sbt.PlayReloader$$anon$2.reload(PlayReloader.scala:219) ~[na:na] + at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] + at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110) ~[play_2.9.1.jar:2.0.3] + at akka.dispatch.Future$$anon$3.liftedTree1$1(Future.scala:195) ~[akka-actor.jar:2.0.2] + at akka.dispatch.Future$$anon$3.run(Future.scala:194) ~[akka-actor.jar:2.0.2] + at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:94) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479) ~[akka-actor.jar:2.0.2] + at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) ~[akka-actor.jar:2.0.2] + +2013-03-08 17:18:13,933 - [INFO] - from application in play-akka.actor.default-dispatcher-10 +Application shutdown... + +2013-03-08 17:18:13,949 - [INFO] - from play in play-akka.actor.default-dispatcher-10 +Application started (Dev) + +2013-03-08 17:19:58,092 - [INFO] - from application in play-akka.actor.default-dispatcher-11 +Application shutdown... + +2013-03-08 17:19:58,109 - [INFO] - from play in play-akka.actor.default-dispatcher-11 +Application started (Dev) + +2013-03-08 17:20:53,334 - [INFO] - from application in play-akka.actor.default-dispatcher-11 +Application shutdown... + +2013-03-08 17:20:53,356 - [INFO] - from play in play-akka.actor.default-dispatcher-11 +Application started (Dev) +
--- a/public/viewer/index.html Fri Mar 08 17:21:47 2013 +0900 +++ b/public/viewer/index.html Fri Mar 08 17:37:22 2013 +0900 @@ -31,7 +31,8 @@ } function loadClaimIDList(){ $.ajax({ - url:BASE_URL+"/users/consensus/"+userName, +// url:BASE_URL+"/users/consensus/"+userName, + url:BASE_URL+"/users/latest/consensus/"+userName, success:function(o){claimIDListLoaded(o)}, type:"GET",cache:false, error:function(o){console.log("ERROR",o)}
Binary file target/scala-2.9.1/classes/Routes$$anonfun$routes$1$$anonfun$apply$1$$anonfun$apply$2.class has changed
Binary file target/scala-2.9.1/classes/Routes$$anonfun$routes$1$$anonfun$apply$3$$anonfun$apply$4.class has changed
Binary file target/scala-2.9.1/classes/Routes$$anonfun$routes$1$$anonfun$apply$5$$anonfun$apply$6.class has changed
Binary file target/scala-2.9.1/classes/controllers/ref/ReverseApplication$$anonfun$hello$1.class has changed
Binary file target/scala-2.9.1/classes/controllers/ref/ReverseAssets$$anonfun$at$1.class has changed
--- a/target/scala-2.9.1/classes/routes Fri Mar 08 17:21:47 2013 +0900 +++ b/target/scala-2.9.1/classes/routes Fri Mar 08 17:37:22 2013 +0900 @@ -20,6 +20,10 @@ POST /claims/:mentionType/:id/create controllers.Claim.createMention(mentionType: String ,id: String) POST /claims/edit/:id controllers.Claim.editClaim(id: String) +# latest +GET /users/latest/consensus/:name controllers.User.getUserLatestConsensus(name: String) + + GET /reset controllers.Claim.reset() # test action
Binary file target/scala-2.9.1/classes_managed/Routes$$anonfun$routes$1$$anonfun$apply$1$$anonfun$apply$2.class has changed
Binary file target/scala-2.9.1/classes_managed/Routes$$anonfun$routes$1$$anonfun$apply$1.class has changed
Binary file target/scala-2.9.1/classes_managed/Routes$$anonfun$routes$1$$anonfun$apply$3$$anonfun$apply$4.class has changed
Binary file target/scala-2.9.1/classes_managed/Routes$$anonfun$routes$1$$anonfun$apply$3.class has changed
Binary file target/scala-2.9.1/classes_managed/Routes$$anonfun$routes$1$$anonfun$apply$5$$anonfun$apply$6.class has changed
Binary file target/scala-2.9.1/classes_managed/Routes$$anonfun$routes$1$$anonfun$apply$5.class has changed
Binary file target/scala-2.9.1/classes_managed/controllers/javascript/ReverseApplication.class has changed
Binary file target/scala-2.9.1/classes_managed/controllers/javascript/ReverseAssets.class has changed
Binary file target/scala-2.9.1/classes_managed/controllers/ref/ReverseApplication$$anonfun$hello$1.class has changed
Binary file target/scala-2.9.1/classes_managed/controllers/ref/ReverseAssets$$anonfun$at$1.class has changed
--- a/target/scala-2.9.1/src_managed/main/controllers/routes.java Fri Mar 08 17:21:47 2013 +0900 +++ b/target/scala-2.9.1/src_managed/main/controllers/routes.java Fri Mar 08 17:37:22 2013 +0900 @@ -1,6 +1,6 @@ // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes -// @HASH:3317ca87d73529fc1de270007d36f9a429867f66 -// @DATE:Fri Mar 08 16:32:07 JST 2013 +// @HASH:32d29c3020c757d877de6640fd77db72a2541e76 +// @DATE:Fri Mar 08 17:18:10 JST 2013 package controllers;
--- a/target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala Fri Mar 08 17:21:47 2013 +0900 +++ b/target/scala-2.9.1/src_managed/main/routes_reverseRouting.scala Fri Mar 08 17:37:22 2013 +0900 @@ -1,6 +1,6 @@ // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes -// @HASH:3317ca87d73529fc1de270007d36f9a429867f66 -// @DATE:Fri Mar 08 16:32:07 JST 2013 +// @HASH:32d29c3020c757d877de6640fd77db72a2541e76 +// @DATE:Fri Mar 08 17:18:10 JST 2013 import play.core._ import play.core.Router._ @@ -12,11 +12,12 @@ import Router.queryString -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 +// @LINE:31 +// @LINE:30 // @LINE:27 -// @LINE:26 -// @LINE:23 +// @LINE:24 // @LINE:21 // @LINE:20 // @LINE:19 @@ -34,7 +35,7 @@ // @LINE:7 package controllers { -// @LINE:23 +// @LINE:27 // @LINE:21 // @LINE:20 // @LINE:19 @@ -85,7 +86,7 @@ } -// @LINE:23 +// @LINE:27 def reset() = { Call("GET", "/reset") } @@ -116,20 +117,20 @@ } -// @LINE:27 -// @LINE:26 +// @LINE:31 +// @LINE:30 class ReverseApplication { -// @LINE:27 +// @LINE:31 def test() = { Call("GET", "/test") } -// @LINE:26 +// @LINE:30 def hello() = { Call("POST", "/hello") } @@ -140,21 +141,21 @@ } -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 class ReverseAssets { -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 def at(file:String) = { (file) match { -// @LINE:32 +// @LINE:36 case (file) if file == "index.html" => Call("GET", "/") -// @LINE:33 +// @LINE:37 case (file) if true => Call("GET", "/" + implicitly[PathBindable[String]].unbind("file", file)) } @@ -166,6 +167,7 @@ } +// @LINE:24 // @LINE:12 // @LINE:11 // @LINE:10 @@ -177,6 +179,12 @@ +// @LINE:24 +def getUserLatestConsensus(name:String) = { + Call("GET", "/users/latest/consensus/" + implicitly[PathBindable[String]].unbind("name", name)) +} + + // @LINE:8 def createUser(name:String) = { Call("PUT", "/users/create/" + implicitly[PathBindable[String]].unbind("name", name)) @@ -221,11 +229,12 @@ -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 +// @LINE:31 +// @LINE:30 // @LINE:27 -// @LINE:26 -// @LINE:23 +// @LINE:24 // @LINE:21 // @LINE:20 // @LINE:19 @@ -243,7 +252,7 @@ // @LINE:7 package controllers.javascript { -// @LINE:23 +// @LINE:27 // @LINE:21 // @LINE:20 // @LINE:19 @@ -324,7 +333,7 @@ ) -// @LINE:23 +// @LINE:27 def reset = JavascriptReverseRoute( "controllers.Claim.reset", """ @@ -368,14 +377,14 @@ } -// @LINE:27 -// @LINE:26 +// @LINE:31 +// @LINE:30 class ReverseApplication { -// @LINE:27 +// @LINE:31 def test = JavascriptReverseRoute( "controllers.Application.test", """ @@ -386,7 +395,7 @@ ) -// @LINE:26 +// @LINE:30 def hello = JavascriptReverseRoute( "controllers.Application.hello", """ @@ -402,15 +411,15 @@ } -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 class ReverseAssets { -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 def at = JavascriptReverseRoute( "controllers.Assets.at", """ @@ -431,6 +440,7 @@ } +// @LINE:24 // @LINE:12 // @LINE:11 // @LINE:10 @@ -442,6 +452,17 @@ +// @LINE:24 +def getUserLatestConsensus = JavascriptReverseRoute( + "controllers.User.getUserLatestConsensus", + """ + function(name) { + return _wA({method:"GET", url:"/users/latest/consensus/" + (""" + implicitly[PathBindable[String]].javascriptUnbind + """)("name", name)}) + } + """ +) + + // @LINE:8 def createUser = JavascriptReverseRoute( "controllers.User.createUser", @@ -516,11 +537,12 @@ -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 +// @LINE:31 +// @LINE:30 // @LINE:27 -// @LINE:26 -// @LINE:23 +// @LINE:24 // @LINE:21 // @LINE:20 // @LINE:19 @@ -538,7 +560,7 @@ // @LINE:7 package controllers.ref { -// @LINE:23 +// @LINE:27 // @LINE:21 // @LINE:20 // @LINE:19 @@ -589,7 +611,7 @@ ) -// @LINE:23 +// @LINE:27 def reset() = new play.api.mvc.HandlerRef( controllers.Claim.reset(), HandlerDef(this, "controllers.Claim", "reset", Seq()) ) @@ -612,20 +634,20 @@ } -// @LINE:27 -// @LINE:26 +// @LINE:31 +// @LINE:30 class ReverseApplication { -// @LINE:27 +// @LINE:31 def test() = new play.api.mvc.HandlerRef( controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Seq()) ) -// @LINE:26 +// @LINE:30 def hello() = new play.api.mvc.HandlerRef( controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Seq()) ) @@ -636,14 +658,14 @@ } -// @LINE:33 -// @LINE:32 +// @LINE:37 +// @LINE:36 class ReverseAssets { -// @LINE:32 +// @LINE:36 def at(path:String, file:String) = new play.api.mvc.HandlerRef( controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])) ) @@ -654,6 +676,7 @@ } +// @LINE:24 // @LINE:12 // @LINE:11 // @LINE:10 @@ -665,6 +688,12 @@ +// @LINE:24 +def getUserLatestConsensus(name:String) = new play.api.mvc.HandlerRef( + controllers.User.getUserLatestConsensus(name), HandlerDef(this, "controllers.User", "getUserLatestConsensus", Seq(classOf[String])) +) + + // @LINE:8 def createUser(name:String) = new play.api.mvc.HandlerRef( controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String]))
--- a/target/scala-2.9.1/src_managed/main/routes_routing.scala Fri Mar 08 17:21:47 2013 +0900 +++ b/target/scala-2.9.1/src_managed/main/routes_routing.scala Fri Mar 08 17:37:22 2013 +0900 @@ -1,6 +1,6 @@ // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes -// @HASH:3317ca87d73529fc1de270007d36f9a429867f66 -// @DATE:Fri Mar 08 16:32:07 JST 2013 +// @HASH:32d29c3020c757d877de6640fd77db72a2541e76 +// @DATE:Fri Mar 08 17:18:10 JST 2013 import play.core._ import play.core.Router._ @@ -74,26 +74,30 @@ val controllers_Claim_editClaim14 = Route("POST", PathPattern(List(StaticPart("/claims/edit/"),DynamicPart("id", """[^/]+""")))) -// @LINE:23 -val controllers_Claim_reset15 = Route("GET", PathPattern(List(StaticPart("/reset")))) - - -// @LINE:26 -val controllers_Application_hello16 = Route("POST", PathPattern(List(StaticPart("/hello")))) +// @LINE:24 +val controllers_User_getUserLatestConsensus15 = Route("GET", PathPattern(List(StaticPart("/users/latest/consensus/"),DynamicPart("name", """[^/]+""")))) // @LINE:27 -val controllers_Application_test17 = Route("GET", PathPattern(List(StaticPart("/test")))) +val controllers_Claim_reset16 = Route("GET", PathPattern(List(StaticPart("/reset")))) + + +// @LINE:30 +val controllers_Application_hello17 = Route("POST", PathPattern(List(StaticPart("/hello")))) -// @LINE:32 -val controllers_Assets_at18 = Route("GET", PathPattern(List(StaticPart("/")))) +// @LINE:31 +val controllers_Application_test18 = Route("GET", PathPattern(List(StaticPart("/test")))) -// @LINE:33 -val controllers_Assets_at19 = Route("GET", PathPattern(List(StaticPart("/"),DynamicPart("file", """.+""")))) +// @LINE:36 +val controllers_Assets_at19 = Route("GET", PathPattern(List(StaticPart("/")))) -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)"""),("""GET""","""/copytree/$id<[^/]+>""","""controllers.Claim.copyClaims(id: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""","""/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)""")) + +// @LINE:37 +val controllers_Assets_at20 = 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)"""),("""GET""","""/copytree/$id<[^/]+>""","""controllers.Claim.copyClaims(id: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""","""/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] = { @@ -218,40 +222,48 @@ } -// @LINE:23 -case controllers_Claim_reset15(params) => { +// @LINE:24 +case controllers_User_getUserLatestConsensus15(params) => { + call(params.fromPath[String]("name", None)) { (name) => + invokeHandler(_root_.controllers.User.getUserLatestConsensus(name), HandlerDef(this, "controllers.User", "getUserLatestConsensus", Seq(classOf[String]))) + } +} + + +// @LINE:27 +case controllers_Claim_reset16(params) => { call { invokeHandler(_root_.controllers.Claim.reset(), HandlerDef(this, "controllers.Claim", "reset", Nil)) } } -// @LINE:26 -case controllers_Application_hello16(params) => { +// @LINE:30 +case controllers_Application_hello17(params) => { call { invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) } } -// @LINE:27 -case controllers_Application_test17(params) => { +// @LINE:31 +case controllers_Application_test18(params) => { call { invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) } } -// @LINE:32 -case controllers_Assets_at18(params) => { +// @LINE:36 +case controllers_Assets_at19(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:33 -case controllers_Assets_at19(params) => { +// @LINE:37 +case controllers_Assets_at20(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]))) }