Add get method, update post to return promise