Skip to content

Commit 3b9aebd

Browse files
committed
Update ports in web service
1 parent 3962dca commit 3b9aebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

App/ExampleModel/Sources/Model/RestfulModel/RestfulModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Shared
55

66
public class RestfulModel: LocalStorageModel {
77
static var baseURL: URL = {
8-
guard let baseURL = URL(string: "http://localhost:8080/v1/") else {
8+
guard let baseURL = URL(string: "http://localhost/v1/") else {
99
fatalError("Could not create the base URL for the Web Service")
1010
}
1111
return baseURL

WebService/Sources/ExampleWebService/Example.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ArgumentParser
88

99
public struct Example: WebService {
1010
@Option(help: "The port the web service of binding to")
11-
var port: Int = 8080
11+
var port: Int = 80
1212
@Option(help: "The path the database file should be saved in")
1313
var databasePath: String = "./example.sqlite"
1414
@Flag(help: "Set to true if you want to revert the database migrations")

0 commit comments

Comments
 (0)