<ul dir="auto">
<li>The name is confusing. It looks like a test assertion, but it's not.</li>
<li>This check is unnecessary. You're only routed to actions if you use correct http verbs. If you reached the action method, you know that the verb is correct.</li>
</ul>
<p dir="auto">When <code class="notranslate">assert_method</code> was added in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/3d0ca940d26bdc23aa791178b01b816185c5a086/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/3d0ca940d26bdc23aa791178b01b816185c5a086"><tt>3d0ca94</tt></a>, <a href="https://github.com/openstreetmap/openstreetmap-website/blob/3d0ca940d26bdc23aa791178b01b816185c5a086/config/routes.rb">most of routes didn't check http methods</a>. That's why this check was necessary.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4622'>https://github.com/openstreetmap/openstreetmap-website/pull/4622</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622/commits/604bba10ecd2f517ab7e3c314003a18a601e1cac" class="commit-link">604bba1</a>  Remove assert_method from api controllers</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622/files">5 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622/files#diff-6726f8601cd22886963fb41888b55956cae4f8124aa12c701da77c3add44d94c">app/controllers/api/changesets_controller.rb</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622/files#diff-73fe5812764d31443ba0d43f028e68aa17963e92fe69d79f72957f5ac1a176b9">app/controllers/api/nodes_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622/files#diff-49b8b506dea5e046c47e71134ed6d1c4ca794559572895c26b1df469ceda868d">app/controllers/api/relations_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622/files#diff-eb50706672183bce46654d5a373c3df75906a65a3ae5055a16ba0d8d2005ca37">app/controllers/api/ways_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622/files#diff-380aab66173996fadff8576f19062da8bacc45be57582f15afb9fd46c411cbbf">app/controllers/api_controller.rb</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4622.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4622.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4622.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4622.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4622">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIPM5KCYXUYIBBDQHDYZ6Q7PAVCNFSM6AAAAABFGKIFI2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDIOBVGQ4DMOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKXIQLHVGOIR6WCGNDYZ6Q7PA5CNFSM6AAAAABFGKIFI2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIG23KKU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4622</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4622",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4622",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>