defined post and get for chirps on server side