title: Export actual functions for different routes in different files
body: <p>Currently my routes file is setup like this:</p>
  
  <pre><code>    const logoutHelper = function (request, response) {
          if (request.session) {
              console.log("User '" + request.session.username + "' logged out.");
              request.session.destroy(function (err) {
                  if (err) {
                      return next(err);
                  } else {
                      return response.redirect('/');
                  }
              });
          }
      }
  
      // Logout user and delete the session object
      app.get('/logout', logoutHelper);
  </code></pre>
  
  <p>How can I move the logoutHelper functions to another file in the same directory? I want to split the post and get routes into different files because my original routes.js grew too big.</p>