<p dir="auto">Continues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2355161195" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4902" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4902/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4902">#4902</a>. Apparently it's too tempting to put the routing logic back into endpoints code (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2357228457" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4904" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4904/hovercard?comment_id=2228123839&comment_type=review" href="https://github.com/openstreetmap/openstreetmap-website/pull/4904#pullrequestreview-2228123839">#4904 (review)</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2357228457" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4904" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4904/hovercard?comment_id=2230576231&comment_type=review" href="https://github.com/openstreetmap/openstreetmap-website/pull/4904#pullrequestreview-2230576231">#4904 (review)</a>). Moving the code to another file will hopefully dissuade that.</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/5062'>https://github.com/openstreetmap/openstreetmap-website/pull/5062</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5062/commits/d065f88b1a565d1b9c784d27993159bc64c926ec" class="commit-link">d065f88</a> Remove references to global variables from endpoint drag listener</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5062/commits/567a9e5b23b07babe32381fd45647dc88ff1915e" class="commit-link">567a9e5</a> Rename route request variable</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5062/commits/415f497d89b75466679841101bc14b0bb9662dcc" class="commit-link">415f497</a> Move endpoints code to its own module</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5062/files">2 files</a>)</p>
<ul>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5062/files#diff-720e11d91a0c3a64a70dd6bfad46c242e9f4755b2470797031de5b55ff9a8c5d">app/assets/javascripts/index/directions-endpoint.js</a>
(84)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5062/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
(109)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5062.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5062.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5062.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5062.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/5062">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIGLTMRVKFZKTYSFD3ZQWEKJAVCNFSM6AAAAABMJO7DUWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TQOBXHA4TINI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMSSYVKZM5BRPZ4ZTLZQWEKJA5CNFSM6AAAAABMJO7DUWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJFD4D4E.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/5062</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/5062",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5062",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>