app0.scala
author Christian Urban <urbanc@in.tum.de>
Mon, 24 Sep 2012 20:51:17 +0100
changeset 5 1280309e6bfc
child 6 4c40d4b2d01c
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
package controllers
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
import play.api.mvc._
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
object Application extends Controller {
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
  // answering a GET request
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
  val index = Action { request =>
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
    
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
    Ok("Hello world!")
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
  }  
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
}
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
1280309e6bfc updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15