Skip to content

Commit

Permalink
Move middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
cretueusebiu committed Jan 22, 2018
1 parent c6aa8db commit 8be6289
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion resources/assets/js/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ Vue.use(Router)
// The middleware for every page of the application.
const globalMiddleware = ['locale', 'check-auth']

// Load middleware modules dynamically.
const routeMiddleware = resolveMiddleware(
require.context('./middleware', false, /.*\.js$/)
require.context('~/middleware', false, /.*\.js$/)
)

const router = createRouter()
Expand Down

0 comments on commit 8be6289

Please sign in to comment.