add get and post method