Adds get and post functions