aboutsummaryrefslogtreecommitdiff
path: root/conf/routes
blob: c2451631457dad0549b7e775d9bad2caee84e513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~


# Home page
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         /logout                 controllers.Authentication.logout

GET         /signup                 controllers.Profile.signup
POST        /signup                 controllers.Profile.signupSubmit

GET         /account                controllers.Profile.editProfile
POST        /account                controllers.Profile.editProfile

GET         /profile/:uuid          controllers.Profile.viewProfile(uuid)

# Internal wallet and transactions (Pépal)
GET         /summary                controllers.Account.summary

GET         /deposit                controllers.Account.deposit
POST        /deposit                controllers.Account.deposit

GET         /withdraw               controllers.Account.withdraw
POST        /withdraw               controllers.Account.withdraw

GET         /transfer               controllers.Account.transfer
POST        /transfer               controllers.Account.transfer

# 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

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