title: Meteor rest api with iron router
body: <p>I have a rest api running on my meteor app with reststop2. This project is now depreciated stating:</p>
  
  <blockquote>
    <p>Everything that this package is capable of can now be accomplished
    using iron-router server-side routes and core Meteor packages (for
    example accounts-password).</p>
  </blockquote>
  
  <p>With some help from <a href="https://github.com/awatson1978/rest-api/tree/master/client" rel="nofollow">rest-api</a> I have got end points up and running but I am having difficulties with authentication. The statement above suggests to use accounts-password but i cant see any methods that I can use on the server, they are all for the client.</p>
  
  <p>I have also tried to use:</p>
  
  <pre><code>Accounts._checkPassword(user, password);
  </code></pre>
  
  <p>but I get the error TypeError: undefined is not a function</p>