Add support for lazy importing middleware
This release attempts to improve the intellisense of Typescript now and also in the future. Moving forward, we will recommend registering middleware as follows:
Server.middleware.register([
() => import('@ioc:Adonis/Core/BodyParserMiddleware'),
() => import('App/Middleware/Auth')
])