diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index e7535d2..e0e5031 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,5 +1,5 @@ branches: [master] -name-template: '$NEXT_PATCH_VERSION 🌈' +name-template: '$NEXT_PATCH_VERSION 🦅' tag-template: '$NEXT_PATCH_VERSION' categories: - title: '🚀 Features' diff --git a/Sources/Corvus/Endpoints/Groups/BasicAuthGroup.swift b/Sources/Corvus/Endpoints/Groups/BasicAuthGroup.swift index fb8826c..1792e0c 100644 --- a/Sources/Corvus/Endpoints/Groups/BasicAuthGroup.swift +++ b/Sources/Corvus/Endpoints/Groups/BasicAuthGroup.swift @@ -43,8 +43,8 @@ public struct BasicAuthGroup: Endpoint { ) let guardedRoutesBuilder = groupedRoutesBuilder.grouped([ - T.guardMiddleware(), - T.authenticator() + T.authenticator(), + T.guardMiddleware() ]) content.register(to: guardedRoutesBuilder) diff --git a/Sources/Corvus/Endpoints/Groups/BearerAuthGroup.swift b/Sources/Corvus/Endpoints/Groups/BearerAuthGroup.swift index d08ac08..c5dcfdb 100644 --- a/Sources/Corvus/Endpoints/Groups/BearerAuthGroup.swift +++ b/Sources/Corvus/Endpoints/Groups/BearerAuthGroup.swift @@ -43,8 +43,8 @@ public struct BearerAuthGroup: Endpoint { ) let guardedRoutesBuilder = groupedRoutesBuilder.grouped([ - T.User.guardMiddleware(), - T.authenticator() + T.authenticator(), + T.User.guardMiddleware() ]) content.register(to: guardedRoutesBuilder) diff --git a/Sources/Corvus/Endpoints/Login.swift b/Sources/Corvus/Endpoints/Login.swift index 47e731d..e4a9b4b 100644 --- a/Sources/Corvus/Endpoints/Login.swift +++ b/Sources/Corvus/Endpoints/Login.swift @@ -43,7 +43,8 @@ Endpoint where T.User: CorvusModelAuthenticatable { /// about the HTTP route leading to the current component. public func register(to routes: RoutesBuilder) { let guardedRoutesBuilder = routes.grouped( - T.User.authenticator() + T.User.authenticator(), + T.User.guardMiddleware() ) guardedRoutesBuilder.post(path, use: handler)