Auto inject services into middleare