-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
25 lines (20 loc) · 890 Bytes
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "JWTAuthExample",
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "3.1.0"),
// 🔵 Swift ORM (queries, models, relations, etc) built on SQLite 3.
.package(url: "https://github.com/vapor/fluent-sqlite.git", from: "3.0.0"),
// JWT
.package(url: "https://github.com/vapor/jwt.git", from: "3.0.0"),
// JWT Middleware to authenticate
.package(url: "https://github.com/skelpo/JWTMiddleware.git", from: "0.8.1"),
],
targets: [
.target(name: "App", dependencies: ["FluentSQLite", "Vapor", "JWTMiddleware", "JWT"]),
.target(name: "Run", dependencies: ["App"]),
.testTarget(name: "AppTests", dependencies: ["App"])
]
)