Updated getShop function to retrieve from GET and POST