Fixed some issues in the DocCMiddleware type in the library target that were encountered while compiling to Swift 6.0 in SPI. (#5)

This PR addresses the issues encountered by the library while [compiling for Swift 6.0](https://swiftpackageindex.com/builds/D20FBEE6-7581-42B7-B78C-9E7D91184A49).

Reviewed-on: #5
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #5.
This commit is contained in:
2025-10-01 14:39:43 +00:00
committed by Javier Cicchelli
parent 1382f33ae6
commit 9cf7b9dc4f
@@ -40,7 +40,6 @@ import struct Logging.Logger
/// 15. *Redirects the URI path `/<ArchiveName>/index/<path/to/file>` to the resource on `/<ArchiveName>.doccarchive/index/<path/to/file>`*
/// 16. *Redirects the URI path `/<ArchiveName>/js/<path/to/file>` to the resource on `/<ArchiveName>.doccarchive/js/<path/to/file>`*
/// 17. *Redirects the URI path `/<ArchiveName>/videos/<path/to/file>` to the resource on `/<ArchiveName>.doccarchive/videos/<path/to/file>`*
///
public struct DocCMiddleware<
Context: RequestContext,
FileSystemProvider: FileProvider
@@ -83,7 +82,7 @@ public struct DocCMiddleware<
threadPool: configuration.threadPool,
logger: logger
),
logger: logger,
logger: logger
)
}
@@ -95,7 +94,7 @@ public struct DocCMiddleware<
init(
configuration: DocCConfiguration,
fileProvider: FileSystemProvider,
logger: Logger,
logger: Logger
) {
self.logger = logger
self.fileProvider = fileProvider