Skip to content

Commit

Permalink
multipart form
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Sep 16, 2024
1 parent b14065a commit 0e5b3cd
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions multipart-form/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ let package = Package(
.product(name: "ExtrasBase64", package: "swift-extras-base64"),
.product(name: "MultipartKit", package: "multipart-kit"),
],
resources: [.process("Resources")],
swiftSettings: [
// Enable better optimizations when building in Release configuration. Despite the use of
// the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
Expand Down
3 changes: 2 additions & 1 deletion multipart-form/Sources/App/Application+build.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import Hummingbird
import MultipartKit
import Mustache
Expand All @@ -8,7 +9,7 @@ protocol AppArguments {
}

func buildApplication(_ args: AppArguments) async throws -> some ApplicationProtocol {
let library = try await MustacheLibrary(directory: "templates")
let library = try await MustacheLibrary(directory: Bundle.module.bundleURL.path)
assert(library.getTemplate(named: "page") != nil, "Set your working directory to the root folder of this example to get it to work")

let router = Router(context: MultipartRequestContext.self)
Expand Down
File renamed without changes.
Binary file modified multipart-form/public/images/hummingbird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e5b3cd

Please sign in to comment.