Added GET method for fetching data.