April 2017
Intermediate to advanced
316 pages
9h 33m
English
It is easy to respond with JSON:
drop.get("version") { request in return try JSON(node: ["version": "0.1"]) }
The preceding code responds to all GET requests to localhost:8080/version with the JSON dictionary {"version": "0.1"} and Content-Type: application/json.
Read now
Unlock full access