blob: 760ab15122afd61b8bdfacaf8ba9f69bc4a6d4be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package app
object VariableRoutes extends cask.MainRoutes{
@cask.get("/user/:userName")
def showUserProfile(userName: String) = {
s"User $userName"
}
@cask.get("/post/:postId")
def showPost(postId: Int, param: Seq[String]) = {
s"Post $postId $param"
}
@cask.get("/path", subpath = true)
def showSubpath(subPath: cask.Subpath) = {
s"Subpath ${subPath.value}"
}
initialize()
}
|