From 4496e089bca542fc98bfad0e005469211e7cbc1e Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 8 Feb 2015 20:06:39 +0100 Subject: Implement current sales listing --- conf/routes | 55 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 27 deletions(-) (limited to 'conf') diff --git a/conf/routes b/conf/routes index d9d1cb1..06081d1 100644 --- a/conf/routes +++ b/conf/routes @@ -4,45 +4,46 @@ # Home page -GET / controllers.Application.index -GET /terms controllers.Application.terms -GET /privacy controllers.Application.privacy +GET / controllers.Application.index +GET /terms controllers.Application.terms +GET /privacy controllers.Application.privacy # User account -GET /login controllers.Authentication.login -POST /login controllers.Authentication.loginSubmit +GET /login controllers.Authentication.login +POST /login controllers.Authentication.loginSubmit -GET /logout controllers.Authentication.logout +GET /logout controllers.Authentication.logout -GET /signup controllers.Profile.signup -POST /signup controllers.Profile.signupSubmit +GET /signup controllers.Profile.signup +POST /signup controllers.Profile.signupSubmit #GET /profile controllers.Application.index #POST /profile controllers.Application.index -# -## Internal wallet and transactions (Pépal) -GET /account controllers.Account.summary -# + +# Internal wallet and transactions (Pépal) +GET /account controllers.Account.summary + #GET /deposit controllers.Application.index #POST /deposit controllers.Application.index -# + #GET /withdraw controllers.Application.index #POST /withdraw controllers.Application.index -# -## Items and sales (eBé) -#GET /sales/:page controllers.Application.index -# -#GET /item/:uuid controllers.Application.index -# -#GET /item/:uuid/bids controllers.Application.index -#POST /item/:uuid/bids controllers.Application.index -# -#GET /sell controllers.Application.index -#GET /sell/:uuid controllers.Application.index -#POST /sell controllers.Application.index + +# Items and sales (eBé) +GET /sales controllers.Sale.sales + +GET /item/:uuid controllers.Sale.item(uuid) + +GET /item/:uuid/bids controllers.Sale.bids(uuid) +POST /item/:uuid/bids controllers.Sale.bids(uuid) + +GET /sell controllers.Sale.sell(itemUuid = null) +GET /sell/:uuid controllers.Sale.sell(uuid) +POST /sell controllers.Sale.sell(itemUuid = null) +POST /sell/:uuid controllers.Sale.sell(uuid) # Cheat console -POST /console controllers.Console.console +POST /console controllers.Console.console # Map static resources from the /public folder to the /assets URL path -GET /assets/*file controllers.Assets.at(path="/public", file) +GET /assets/*file controllers.Assets.at(path="/public", file) -- cgit v1.2.3