Skip to content

Commit

Permalink
Remove http config
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerbert committed Sep 22, 2021
1 parent e2308df commit 9c1bdae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions WebService/Sources/Demo/Demo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9c1bdae

Please sign in to comment.