view target/scala-2.9.1/src_managed/main/routes_routing.scala @ 17:a134edaebf6f

modified UserModel/appendRequests
author one
date Tue, 02 Oct 2012 14:51:24 +0900
parents 792fdb0c10bf
children ad7cfb1f9d03
line wrap: on
line source

// @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes
// @HASH:59e0af1cf1b7de16f307bf871a5f5dfd5d4ad215
// @DATE:Tue Oct 02 11:52:43 JST 2012

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:6
val controllers_Application_index0 = Route("GET", PathPattern(List(StaticPart("/"))))
                    

// @LINE:7
val controllers_User_createUser1 = Route("PUT", PathPattern(List(StaticPart("/users/create/"),DynamicPart("name", """[^/]+"""))))
                    

// @LINE:8
val controllers_User_getUser2 = Route("GET", PathPattern(List(StaticPart("/users/browse/"),DynamicPart("name", """[^/]+"""))))
                    

// @LINE:9
val controllers_User_getUserRequests3 = Route("GET", PathPattern(List(StaticPart("/users/requests/"),DynamicPart("name", """[^/]+"""))))
                    

// @LINE:10
val controllers_User_getUserConsensus4 = Route("GET", PathPattern(List(StaticPart("/users/consensus/"),DynamicPart("name", """[^/]+"""))))
                    

// @LINE:11
val controllers_User_getUserClaims5 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+"""))))
                    

// @LINE:13
val controllers_Claim_crateClaim6 = Route("POST", PathPattern(List(StaticPart("/claims/create"))))
                    

// @LINE:17
val controllers_Application_hello7 = Route("POST", PathPattern(List(StaticPart("/hello"))))
                    

// @LINE:18
val controllers_Application_test8 = Route("GET", PathPattern(List(StaticPart("/test"))))
                    

// @LINE:22
val controllers_Assets_at9 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+"""))))
                    
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""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)"""))
             
    
def routes:PartialFunction[RequestHeader,Handler] = {        

// @LINE:6
case controllers_Application_index0(params) => {
   call { 
        invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil))
   }
}
                    

// @LINE:7
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:8
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:9
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:10
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:11
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_crateClaim6(params) => {
   call { 
        invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil))
   }
}
                    

// @LINE:17
case controllers_Application_hello7(params) => {
   call { 
        invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil))
   }
}
                    

// @LINE:18
case controllers_Application_test8(params) => {
   call { 
        invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil))
   }
}
                    

// @LINE:22
case controllers_Assets_at9(params) => {
   call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) =>
        invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])))
   }
}
                    
}
    
}