11 lines
299 B
Swift
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)
|
|
}
|