diff --git a/Sources/Sugar/Middlewares/SimpleAuthMiddleware.swift b/Sources/Sugar/Middlewares/SimpleAuthMiddleware.swift index 934974a..91fc14e 100644 --- a/Sources/Sugar/Middlewares/SimpleAuthMiddleware.swift +++ b/Sources/Sugar/Middlewares/SimpleAuthMiddleware.swift @@ -2,14 +2,14 @@ import HTTP import Vapor import AuthProvider -internal final class SimpleAuthMiddleware: Middleware { +public final class SimpleAuthMiddleware: Middleware { private let token: String - internal init(token: String) { + public init(token: String) { self.token = token } - func respond(to request: Request, chainingTo next: Responder) throws -> Response { + public func respond(to request: Request, chainingTo next: Responder) throws -> Response { let resp = try next.respond(to: request) guard