plumber @post results in "404 - Resource Not Found"
<p>I tried replicating part of the example on this <a href="http://plumber.trestletech.com/docs/endpoints/" rel="nofollow noreferrer">page</a>.  However, when I try the <code>http://my-host:8000/input?val=1</code> it gives me the error <code>{"error":["404 - Resource Not Found"]}</code></p>

<p>Am I missing anything?</p>

<p><strong>plumb-test.R</strong></p>

<pre><code>mylist &lt;- 15

#* @post /input
function(val, res){
  v &lt;- as.numeric(val)
  if (is.na(v)){
    res$status &lt;- 400
    res$body &lt;- "val parameter must be a number"
    return(res)
  }
  mylist &lt;&lt;- c(mylist,val)

  list(result="success")
}
</code></pre>