added middleware layer for json parsing and static file path