 			"port":PerfectTestServer.PrimaryApiPort,
 			"routes":[
 				["method":"get", "uri":"/", "handler":handler],
+				["method":"get", "uri":"/\(PerfectTestServer.ApiVersion)/\(PerfectTestServer.CalendarEndpoint)", "handler":calendarEndpointHandler],
 				["method":"get", "uri":"/**", "handler":PerfectHTTPServer.HTTPHandler.staticFiles,
 				 "documentRoot":"./webroot",
 				 "allowResponseFilters":true]

import PerfectHTTP
import PerfectHTTPServer

struct PerfectTestServer {
    static let Name = "localhost"
    static let PrimaryApiPort = 8080
    static let RedirectApiPort = 8181
}

// An example request handler.
// This 'handler' function can be referenced directly in the configuration below.
func handler(data: [String:Any]) throws -> RequestHandler {
	return {
		request, response in
		response.status = .ok
		response.setHeader(.contentType, value: "text/html")
		response.appendBody(string: "<html><title>Hello, world!</title><body>Hello, world!</body></html>")
		response.completed()
	}
}

let confData = [

]

do {
	try HTTPServer.launch(configurationData: confData)
} catch {
	fatalError("\(error)")
}

