Skip to content

Commit

Permalink
Update ports in web service
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jul 17, 2021
1 parent 3962dca commit 3b9aebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion WebService/Sources/ExampleWebService/Example.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3b9aebd

Please sign in to comment.