move json api to /api path