ce1e141ca4
Delete paths.conf
17 lines
270 B
Swift
17 lines
270 B
Swift
import Foundation
|
|
|
|
struct Config: Codable {
|
|
|
|
let logPath: String
|
|
|
|
let serveFiles: Bool
|
|
|
|
var logURL: URL {
|
|
.init(fileURLWithPath: logPath)
|
|
}
|
|
|
|
static var `default`: Config {
|
|
.init(logPath: "/var/log/caps.log", serveFiles: true)
|
|
}
|
|
}
|