connect middleware that response git command result to json