made functions for get and post and have them in parseController. Think next step is to put them in a service or a factory.