42474bbee1
- Add JWT auth with refresh token rotation - Replace all Leaf templates with JSON API endpoints - Remove AdminAuthMiddleware, add JWTAuthMiddleware - Scaffold React frontend with Vite - Remove Leaf dependency from Package.swift - Update FileMiddleware to serve React build 💘 Generated with Crush Assisted-by: Local Model via Crush <crush@charm.land>
45 lines
1.9 KiB
Swift
45 lines
1.9 KiB
Swift
// swift-tools-version:6.0
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "ReadeckProxy",
|
|
platforms: [
|
|
.macOS(.v14)
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/vapor/vapor.git", from: "4.89.0"),
|
|
.package(url: "https://github.com/vapor/fluent.git", from: "4.9.0"),
|
|
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.8.0"),
|
|
.package(url: "https://github.com/vapor/jwt.git", "4.0.0" ..< "5.0.0"),
|
|
.package(url: "https://github.com/apple/swift-nio.git", from: "2.65.0"),
|
|
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.25.0"),
|
|
.package(url: "https://github.com/apple/swift-certificates.git", from: "1.0.0"),
|
|
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "App",
|
|
dependencies: [
|
|
.product(name: "Vapor", package: "vapor"),
|
|
.product(name: "Fluent", package: "fluent"),
|
|
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"),
|
|
.product(name: "JWT", package: "jwt"),
|
|
.product(name: "NIOCore", package: "swift-nio"),
|
|
.product(name: "NIOPosix", package: "swift-nio"),
|
|
.product(name: "NIOHTTP1", package: "swift-nio"),
|
|
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
|
|
.product(name: "NIOSSL", package: "swift-nio-ssl"),
|
|
.product(name: "X509", package: "swift-certificates"),
|
|
.product(name: "Crypto", package: "swift-crypto"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "AppTests",
|
|
dependencies: [
|
|
.target(name: "App"),
|
|
.product(name: "Vapor", package: "vapor"),
|
|
]
|
|
),
|
|
]
|
|
)
|