created router for endPoint HTTP requests too