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.