DnsUpdater/Sources/App/configure.swift
Christoph Hagen 9b6fd627ac First version
2024-11-15 10:46:29 +01:00

11 lines
299 B
Swift

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)
}