title: Get request to a .html file is not handled by express
body: <pre><code>const express = require('express');
  const app = express();
  const port = 3000;
  const bodyPar=require('body-parser');
  const session = require('express-session');
  const path=require('path');
  var user=["Jared","Bill","Jason","Jeremy"];
  
  
  app.use(express.static('proiect'));
  app.use(bodyPar.urlencoded({extended : true}));
  app.use(bodyPar.json());
  app.use(session({secret:'secret',saveUninitialized:true,resave:true}));
  var sess;
  var s;
  
  app.post('/login',function(req,res){
      var i=0;
      sess=req.session;
  
      var username=req.body.username;
      var pass=req.body.password;
      var but=req.body.value;
      s=0;
      sess.email=username;
  
      for(i=0;i&lt;3;i++)
      {
          if(username==user[i])
          {
              s=s+1;
              i=5;
          }
      }
      if(pass="123")
          s=s+1;
      if(s==2)
          res.redirect('homepage.html');
      else
          res.redirect('login-error.html');
  
  
  
      res.end();
  });
  
  app.get('/homepage.html',function(req,res){
  
  
          console.log('aaa');
  
  
  });
  app.get('bios.html',function(req,res){
  
  
          console.log('aaa');
  
  
  });
  app.post('/guest',function(req,res){
      sess=req.session;
      sess.username="Guest";
      s=2;
      res.redirect('homepage.html');
  });
  app.get('/logout',function(req,res){
      req.session.destroy(function(){
         res.redirect('login.html');  
         s=0;
      });
  
  });
  app.listen(port, () =&gt; console.log(`listening on port ${port}!`));
  </code></pre>
  
  <p>The server doesnt handle the app.get('homepage.html') or 'bios.html' it just displays the html file in the browser.(should hang and display smth on console).</p>
  
  <p>Am i supposed to serve/render those files instead of directly accessing them in the browser?
  Both of those files are in the /proiect/ folder i've included on the server.</p>