Skip to content

Instantly share code, notes, and snippets.

@spinscale
Created February 5, 2013 10:40
Show Gist options
  • Save spinscale/4713643 to your computer and use it in GitHub Desktop.
Save spinscale/4713643 to your computer and use it in GitHub Desktop.
spark-groovy-jrebel-first-closure-get
def get(String path, Closure closure) {
Spark.get(new Route(path) {
def handle(Request request, Response response) {
closure.delegate = this
return closure.call(request, response)
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment