annotate conf/routes @ 3:5a097a2336fa draft

commit
author e085711
date Wed, 26 Sep 2012 14:43:07 +0900
parents e45bf6020b0d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 # Routes
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 # This file defines all application routes (Higher priority routes first)
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 # ~~~~
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 # Home page
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 GET / Application.index
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 # Ignore favicon requests
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 GET /favicon.ico 404
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 # Map static resources from the /app/public folder to the /public path
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 GET /public/ staticDir:public
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
3
e085711
parents: 0
diff changeset
14
e085711
parents: 0
diff changeset
15 GET /db/data/testwrite Application.testwrite
e085711
parents: 0
diff changeset
16 GET /db/data/testread Application.testread
e085711
parents: 0
diff changeset
17 #GET /db/data/{action} db.Data.{action}
e085711
parents: 0
diff changeset
18 POST /db/data/node db.Data.node
e085711
parents: 0
diff changeset
19 GET /db/data/node/{id} db.Data.node
e085711
parents: 0
diff changeset
20
e085711
parents: 0
diff changeset
21
e085711
parents: 0
diff changeset
22 GET /{id}/test db.Data.test
e085711
parents: 0
diff changeset
23
e085711
parents: 0
diff changeset
24
0
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 # Catch all
e45bf6020b0d add play files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 * /{controller}/{action} {controller}.{action}
3
e085711
parents: 0
diff changeset
27