replace ispostrequest by route verbs