Completed GET API for blog on backend and frontend