Sails.js, API executing without route configuration and controller.method
<p>Hey guys here I have a peculiar situation in Sails.js</p>

<ul>
<li>I created new model and controller named "sponsor" using <code>sails generate api sponsor</code> in the cmd-line</li>
<li>Then I created the <strong>route:</strong> <code>post /create/new/sponsor' : 'SponsorController.create</code> ,created a method "<strong>create</strong>" inside the controller and structured the respective model.</li>
<li>Now when am trying it out in postman using legit configuration, everything is working fine, as its is supposed to work. New sponsor is getting created!!

<blockquote>
  <p><strong>THE PROBLEM IS :</strong> </p>
  
  <ul>
  <li>Even when Iam passing URL <code>localhost:port/sponsor</code> new sponsor is getting created  (which is supposed to throw <strong>status:404</strong>) as there is no such route defined.</li>
  <li>Then I deleted the controller method "<strong>create</strong>" and tried using the url <code>localhost:port/sponsor</code>, strange it still works!!!!</li>
  <li>The only ERROR that I got is in cmd-prompt saying "<strong>Invalid usage of publishCreate():: Values must have an 'id' instead ...</strong> (the body passed )"</li>
  </ul>
</blockquote></li>
</ul>

<p>I checked with the other other APIs that I have created before, everything is working normally according to routes defined ie.  if [ url doesnt match route == status:404 ] </p>

<p>I want to know why is it happening? </p>