0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 # Routes
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 # This file defines all application routes (Higher priority routes first)
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 # ~~~~
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 # Home page
|
5
|
6 GET / controllers.Application.index()
|
13
|
7 PUT /users/create/:name controllers.User.createUser(name: String)
|
8
|
8 GET /users/browse/:name controllers.User.getUser(name: String)
|
9
|
9 GET /users/requests/:name controllers.User.getUserRequests(name: String)
|
10
|
10 GET /users/consensus/:name controllers.User.getUserConsensus(name: String)
|
31
|
11 GET /users/claims/:name controllers.User.getUserClaims(name: String)
|
10
|
12
|
31
|
13 GET /claims/browse/:id controllers.Claim.getClaimInfo(id: String)
|
30
|
14 GET /claims/consensus/:id controllers.Claim.getClaimTree(id: String)
|
29
|
15
|
31
|
16 POST /claims/create controllers.Claim.crateClaim()
|
25
|
17 POST /claims/:mentionType/:id/create controllers.Claim.createMention(mentionType: String ,id: String)
|
8
|
18
|
30
|
19
|
|
20
|
8
|
21 # test action
|
|
22 POST /hello controllers.Application.hello()
|
|
23 GET /test controllers.Application.test()
|
0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
24
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
25
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
26 # Map static resources from the /public folder to the /assets URL path
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
27 GET /assets/*file controllers.Assets.at(path="/public", file)
|
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
28
|