title: Nodejs / Expressjs Cannot link to css file
body: <p>I am trying out node / express js and created a little web project.</p>
  
  <p>I have the views in root /views  directory</p>
  
  <p>so:</p>
  
  <pre><code>root
    /views
    /css
  </code></pre>
  
  <p>I've added this to /views/index.html file:</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="css/style.css" /&gt;
  </code></pre>
  
  <p>And this is my server.js file code:</p>
  
  <pre><code>var express = require("express");
  var app = express();
  var router = express.Router();
  var path = __dirname + '/views/';
  var path = __dirname + '/css/'; //Not working
  
  router.use(function (req,res,next) {
    console.log("/" + req.method);
    next();
  });
  
  router.get("/",function(req,res){
    res.sendFile(path + "index.html");
  });
  
  router.get("/about",function(req,res){
    res.sendFile(path + "about.html");
  });
  
  router.get("/contact",function(req,res){
    res.sendFile(path + "contact.html");
  });
  
  app.use("/",router);
  
  app.use(express.static('public'));
  
  app.use("*",function(req,res){
    res.sendFile(path + "404.html");
  });
  
  app.listen(3000,function(){
    console.log("Live at Port 3000 - http://localhost:3000");
  });
  </code></pre>
  
  <p>How can I get it to read my css files?</p>