Added support for an API key to the AuthMiddleware middleware in the library target.

This commit is contained in:
2025-10-04 19:07:29 +02:00
parent ce0ec02c03
commit 0105125679
5 changed files with 163 additions and 51 deletions
@@ -0,0 +1,23 @@
//===----------------------------------------------------------------------===
//
// This source file is part of the MarvelService open source project
//
// Copyright (c) -2025 Röck+Cöde VoF. and the MarvelService project authors
// Licensed under the EUPL 1.2 or later.
//
// See LICENSE for license information
// See CONTRIBUTORS for the list of MarvelService project authors
//
//===----------------------------------------------------------------------===
extension String {
/// A namespace assigned for parameter keys of URI paths.
enum Parameter {
/// A Marvel API key parameter.
static let apiKey = "apikey"
/// A MD5 hash parameter.
static let hash = "hash"
/// A timestamp parameter.
static let timestamp = "ts"
}
}