title: Sails.js Viewing information from API
body: <p>I just started taking interest in Sails.JS
  and I'm following a educational guide on it by Traversy Media. In this guide everything goes well for me until he generates an API where he accesses it through <code>localhost:1337/articles</code>.
  I can't access this file only getting a 404 page, so I went searching on the internet for help. I found out I needed to add <code>/articles</code> to <code>config/routes.js</code> but i haven't figured out what to place in the <code>action</code> part.
  At <a href="https://www.youtube.com/watch?v=AmjiDC_JUt4" rel="nofollow noreferrer">10:36</a> in the Traversy Sails.JS tutorial, it shows the part I'm unable to browse to.
  Is anyone able to help? Thanks in advance.</p>
  
  <p><code>ArticlesController.js</code> file is default</p>
  
  <p>My <code>routes.js</code> :</p>
  
  <pre><code>    module.exports.routes = {
  
  
        'GET /':                   { action: 'view-homepage-or-redirect' },
        'GET /welcome':            { action: 'dashboard/view-welcome' },
        'GET /articles':           { action: 'view-Articles' },
  
        'GET /faq':                { view:   'pages/faq' },
        'GET /legal/terms':        { view:   'pages/legal/terms' },
        'GET /legal/privacy':      { view:   'pages/legal/privacy' },
        'GET /contact':            { view:   'pages/contact' },
  
        'GET /signup':             { action: 'entrance/view-signup' },
        'GET /email/confirm':      { action: 'entrance/confirm-email' },
        'GET /email/confirmed':    { view:   'pages/entrance/confirmed-email' },
  
        'GET /login':              { action: 'entrance/view-login' },
        'GET /password/forgot':    { action: 'entrance/view-forgot-password' },
        'GET /password/new':       { action: 'entrance/view-new-password' },
  
        'GET /account':            { action: 'account/view-account-overview' },
        'GET /account/password':   { action: 'account/view-edit-password' },
        'GET /account/profile':    { action: 'account/view-edit-profile' },
  
  
        '/api/v1/account/logout':                              { action: 'account/logout' },
        'PUT   /api/v1/account/update-password':               { action: 'account/update-password' },
        'PUT   /api/v1/account/update-profile':                { action: 'account/update-profile' },
        'PUT   /api/v1/account/update-billing-card':           { action: 'account/update-billing-card' },
        'PUT   /api/v1/entrance/login':                        { action: 'entrance/login' },
        'POST  /api/v1/entrance/signup':                       { action: 'entrance/signup' },
        'POST  /api/v1/entrance/send-password-recovery-email': { action: 'entrance/send-password-recovery-email' },
        'POST  /api/v1/entrance/update-password-and-login':    { action: 'entrance/update-password-and-login' },
        'POST  /api/v1/deliver-contact-form-message':          { action: 'deliver-contact-form-message' },
  
  
        '/terms':                   '/legal/terms',
        '/logout':                  '/api/v1/account/logout',
  
      };
  
  Blueprints is also default
  </code></pre>