April 2017
Intermediate to advanced
316 pages
9h 33m
English
Routing in Vapor is simple as the following:
drop.get("welcome") { request in return "Hello, World" }
Adding the preceding code to the main file will make our web application respond to all GET requests to localhost:8080/welcome with the string, Hello, World.
Read now
Unlock full access