November 2018
Intermediate to advanced
404 pages
10h 16m
English
Now, you can add some secured routes based on the code base of the myJournal application in Chapter 8, Employing Storage Framework.
To set up HTTP basic authentication, add the following package dependencies to the Swift Package Manager's manifest file, Package.swift:
// swift-tools-version:4.0import PackageDescriptionlet package = Package( name: "myJournal", dependencies: [ .package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.5.0")), .package(url: "https://github.com/IBM-Swift/HeliumLogger.git", .upToNextMinor(from: "1.7.1")), .package(url: "https://github.com/IBM-Swift/CloudEnvironment.git", from: "8.0.0"), .package(url: "https://github.com/RuntimeTools/SwiftMetrics.git", ...
Read now
Unlock full access