From bbcefa90977bd29964d0e95ac3b19c9c6ee4787c Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Mon, 1 Oct 2018 20:28:31 +0200 Subject: [PATCH] feat(middleware): add named guest middleware --- start/kernel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start/kernel.js b/start/kernel.js index 1a1bd36..cba76b4 100644 --- a/start/kernel.js +++ b/start/kernel.js @@ -37,7 +37,8 @@ const globalMiddleware = [ | */ const namedMiddleware = { - auth: 'Adonis/Middleware/Auth' + auth: 'Adonis/Middleware/Auth', + guest: 'Adonis/Middleware/AllowGuestOnly' } /*