[minor] Change the middleware layer folder in a lib folder
[minor] Enable CORS