From 3b9aebdddf66ba2746d3766b27e07e4bb3b545ad Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Sat, 17 Jul 2021 17:31:23 +0200 Subject: [PATCH] Update ports in web service --- App/ExampleModel/Sources/Model/RestfulModel/RestfulModel.swift | 2 +- WebService/Sources/ExampleWebService/Example.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/App/ExampleModel/Sources/Model/RestfulModel/RestfulModel.swift b/App/ExampleModel/Sources/Model/RestfulModel/RestfulModel.swift index 531e0f9..706da8d 100644 --- a/App/ExampleModel/Sources/Model/RestfulModel/RestfulModel.swift +++ b/App/ExampleModel/Sources/Model/RestfulModel/RestfulModel.swift @@ -5,7 +5,7 @@ import Shared public class RestfulModel: LocalStorageModel { static var baseURL: URL = { - guard let baseURL = URL(string: "http://localhost:8080/v1/") else { + guard let baseURL = URL(string: "http://localhost/v1/") else { fatalError("Could not create the base URL for the Web Service") } return baseURL diff --git a/WebService/Sources/ExampleWebService/Example.swift b/WebService/Sources/ExampleWebService/Example.swift index cbc9bc0..dfc7bf3 100644 --- a/WebService/Sources/ExampleWebService/Example.swift +++ b/WebService/Sources/ExampleWebService/Example.swift @@ -8,7 +8,7 @@ import ArgumentParser public struct Example: WebService { @Option(help: "The port the web service of binding to") - var port: Int = 8080 + var port: Int = 80 @Option(help: "The path the database file should be saved in") var databasePath: String = "./example.sqlite" @Flag(help: "Set to true if you want to revert the database migrations")