Add via option to match routes

In rails4, `match` method without specifying an HTTP method raises
RuntimeError.