Create get-to-map that takes a get request and returns a map