Last change
on this file since 322 was
322,
checked in by hendrikvanantwerpen, 13 years ago
|
Added Play! framework and application with Jena dependency. Working on
the basic things now (login/register), after that start implementing
our data model.
|
File size:
976 bytes
|
Line | |
---|
1 | # Routes |
---|
2 | # This file defines all application routes (Higher priority routes first) |
---|
3 | # ~~~~ |
---|
4 | |
---|
5 | # Default path will just redirect to the computer list |
---|
6 | GET / controllers.Application.index() |
---|
7 | |
---|
8 | # Computers list (look at the default values for pagination parameters) |
---|
9 | GET /computers controllers.Application.list(p:Int ?= 0, s ?= "name", o ?= "asc", f ?= "") |
---|
10 | |
---|
11 | # Add computer |
---|
12 | GET /computers/new controllers.Application.create() |
---|
13 | POST /computers controllers.Application.save() |
---|
14 | |
---|
15 | # Edit existing computer |
---|
16 | GET /computers/:id controllers.Application.edit(id:Long) |
---|
17 | POST /computers/:id controllers.Application.update(id:Long) |
---|
18 | |
---|
19 | # Delete a computer |
---|
20 | POST /computers/:id/delete controllers.Application.delete(id:Long) |
---|
21 | |
---|
22 | # Map static resources from the /public folder to the /assets URL path |
---|
23 | GET /assets/*file controllers.Assets.at(path="/public", file) |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.