view conf/routes @ 50:d6c623e92837

modified routes
author one
date Thu, 04 Oct 2012 16:14:30 +0900
parents f78442777849
children ed77c5258568
line wrap: on
line source

# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# Home page
#GET		/							controllers.Application.index()
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)
POST	/claims/answer/:id/:name/:status	controllers.Claim.updateUserConsensusStatus(id: String, name: String, status: String)
POST	/claims/create				controllers.Claim.crateClaim()
POST	/claims/:mentionType/:id/create			controllers.Claim.createMention(mentionType: String ,id: String)
POST	/claims/edit/:id			controllers.Claim.editClaim(id: String)


# test action
POST	   /hello				controllers.Application.hello()
GET		/test					controllers.Application.test()


# Map static resources from the /public folder to the /assets URL path
#GET     /assets/*file               controllers.Assets.at(path="/public", file)
GET		/								controllers.Assets.at(path="/public/viewer", file="index.html")
GET		/*file							controllers.Assets.at(path="/public/viewer", file)