diff --git a/auth/LoginRedirectMiddleware.md b/auth/LoginRedirectMiddleware.md index e2def8ef..8097f3eb 100644 --- a/auth/LoginRedirectMiddleware.md +++ b/auth/LoginRedirectMiddleware.md @@ -6,8 +6,8 @@ currentMenu: LoginRedirectMiddleware `LoginRedirectMiddleware` is a Middleware to be used when you what to create an automatic redirection from any routes when the user is not authenticated. -## Examples -In your main.swift file +## Example +In your main.swift file: ```swift drop.grouped(LoginRedirectMiddleware(loginRoute: "/login")).group("admin") { routeAdmin in