feat(middleware): add named guest middleware

This commit is contained in:
Harminder Virk 2018-10-01 20:28:31 +02:00
parent 1ffe22be10
commit bbcefa9097

View File

@ -37,7 +37,8 @@ const globalMiddleware = [
|
*/
const namedMiddleware = {
auth: 'Adonis/Middleware/Auth'
auth: 'Adonis/Middleware/Auth',
guest: 'Adonis/Middleware/AllowGuestOnly'
}
/*