Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from nodes-vapor/feature/simple-auth-middleware
Browse files Browse the repository at this point in the history
Make SimpleAuthMiddleware accesible outside of module
  • Loading branch information
cweinberger authored Jul 3, 2018
2 parents 6ef018e + 5de15e0 commit b019302
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Sugar/Middlewares/SimpleAuthMiddleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b019302

Please sign in to comment.