DnsUpdater/Sources/App/configure.swift

11 lines
299 B
Swift
Raw Normal View History

2024-11-15 10:46:29 +01:00
import Vapor
public func configure(_ app: Application) async throws {
let resourceDirectoryUrl = URL(fileURLWithPath: app.directory.resourcesDirectory)
let configurationFileUrl = resourceDirectoryUrl.appending(path: "config.json", directoryHint: .notDirectory)
try routes(app)
}