changed allowed methods to put,get,delete,post (testing onlygit add .)