Browse Source

Begin setup of tasks interface

Define task routes
  Create TODO stubs for task controller actions
  Redirect index action to task list route
master
jimi 11 years ago
parent
commit
51923d2615
  1. 8
      app/controllers/Application.scala
  2. 5
      conf/routes

8
app/controllers/Application.scala

@ -6,7 +6,13 @@ import play.api.mvc._
object Application extends Controller {
def index = Action {
Ok(views.html.index("Your new application is ready."))
Redirect(routes.Application.tasks)
}
def tasks = TODO
def newTask = TODO
def deleteTask(id:Long) = TODO
}

5
conf/routes

@ -5,5 +5,10 @@
# Home page
GET / controllers.Application.index
# Tasks
GET /tasks controllers.Application.tasks
POST /tasks controllers.Application.newTask
POST /tasks/:id/delete controllers.Application.deleteTask(id:Long)
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)