Fix post and patch routes in forms.