 import Vapor
+import HTTP
 
 class Customer: NodeRepresentable {
   var firstName: String!

  return try JSON(node: ["names" : ["Alex", "Mary", "John"]])
}

// a GET endpoint without an identifier is treated as the root
drop.get("customer") { request in
  let customer = Customer(first: "Louis", last: "Tur")
  return try JSON(node: customer)
}

drop.run()


let drop = Droplet()

// MARK: Basic Routing
drop.get("hello") { request in
  return try JSON(node: [ "message" : "hello world!"])
}
