diff --git a/WebService/Sources/Demo/Demo.swift b/WebService/Sources/Demo/Demo.swift index ee670c5..d5d4b94 100644 --- a/WebService/Sources/Demo/Demo.swift +++ b/WebService/Sources/Demo/Demo.swift @@ -8,16 +8,15 @@ import ArgumentParser struct DemoWebService: WebService { @Option(help: "The port the web service is offered at") var port: Int = 80 - - + + var configuration: Configuration { - HTTPConfiguration(port: port) HTTP2Configuration(cert: "/buoy/cert.pem", keyPath: "/buoy/key.pem") REST { OpenAPI() } } - + var content: some Component { Group("sensors") { Sensor()