source: Dev/branches/play-2.0.1/samples/scala/computer-database/conf/routes @ 322

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: 957 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
6GET     /                           controllers.Application.index
7
8# Computers list (look at the default values for pagination parameters)
9GET     /computers                  controllers.Application.list(p:Int ?= 0, s:Int ?= 2, f ?= "")
10
11# Add computer
12GET     /computers/new              controllers.Application.create
13POST    /computers                  controllers.Application.save
14
15# Edit existing computer
16GET     /computers/:id              controllers.Application.edit(id:Long)
17POST    /computers/:id              controllers.Application.update(id:Long)
18
19# Delete a computer
20POST    /computers/:id/delete       controllers.Application.delete(id:Long)
21
22# Map static resources from the /public folder to the /assets URL path
23GET     /assets/*file               controllers.Assets.at(path="/public", file)
24
Note: See TracBrowser for help on using the repository browser.