fixes routes upgrader to properly emit :via for routes with verbs

From: https://github.com/rails/rails_upgrade/pull/8#issuecomment-813205

(Not sure if I'm doing this right)