title: How to call a middlware on root route that serves static index.html files on nestjs?
body: <p>I have situation where I need to call a middleware logic before HTML is served to restrict users based on locations. 
  I am using Nest ServeStaticModule and I am unable to figure out a way to execute this middleware for only index.html. I want to call this middleware logic only on root route and any route which are prefixed by using 
  app.setGlobalPrefix(globalPrefix);
  needs to be ignored.</p>
  
  <p>Any help would be greatly appreciated. 
  We are using nrwl workspace for Angular + Nest development.</p>