added the middle layer route to the express framework