title: Express app defined `static` folder not working properly
body: <p>In my <code>express</code> app, I have declared the static folder. And I am keeping my <code>index.html</code> as well in the static folder. But I have created a new <code>router</code> for a new purpose. when i create a new <code>router</code> my static folder always trying to get the assets using the new <code>router</code> declared. any one help me to sort this issue?</p>
  
  <p>here is my code and issue :</p>
  
  <pre><code>var 
  express = require("express"),
  app     = express(),
  Router  = express.Router;
  
  
  app.use( express.static(__dirname + '/puplic')); //my public folder
  
  var oneTime = new Router(); //my new router
  
  
  oneTime.get("*", function( req, res ) {
  
      res.sendFile( __dirname + "/public/oneTime/index.html");
  
  });
  
  app.use("/oneTime", oneTime);
  
  app.listen( 9000, function portCallback() {
  
      console.log(" I am started!!" , __dirname);
  
  })
  </code></pre>
  
  <p>But my app trying to get the <code>angular</code> js like this:</p>
  
  <blockquote>
    <p><a href="http://localhost:9000/oneTime/oneTime/angular.min.js" rel="nofollow noreferrer">http://localhost:9000/oneTime/oneTime/angular.min.js</a></p>
  </blockquote>
  
  <p>what is the issue?</p>
  
  <p>here is the html how i call my angualr:</p>
  
  <pre><code>&lt;script src="oneTime/angular.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>actually I am expecting like this:</p>
  
  <blockquote>
    <p><a href="http://localhost:9000/public/oneTime/angular.min.js" rel="nofollow noreferrer">http://localhost:9000/public/oneTime/angular.min.js</a></p>
  </blockquote>