Closed
Description
Following code prints error when run:
object MinimalApplication extends cask.MainRoutes {
@cask.get("/root/x")
def hello() = {
"Hello World!"
}
@cask.get("/:path")
def doThing(path: String) = {
path.reverse
}
initialize()
}
The error is:
Routes overlap with wildcards: get /root/x, get /:path
When I replace the "/root/x" route with "/", the error disappears (this is how default MinimalApplication
looks like).
Metadata
Metadata
Assignees
Labels
No labels