// This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddOptions();
     // Change view folder default location
     services.Configure <RazorViewEngineOptions>(options =>
     {
         options.ViewLocationExpanders.Add(new ViewLocationExpander());
     });
     // Set file types response that need to be compressed
     services.AddResponseCompression(options =>
     {
         options.MimeTypes = MimeTypes.Concat(new[]
         {
             "image/svg+xml",
             "image/png",
             "image/jpeg",
             "image/gif",
             "image/x-icon",
             "text/css",
             "font/woff2",
             "application/font-woff",
             "application/javascript",
         });
     });
     services.AddMemoryCache();
     services.AddNodeServices();
     // Add framework services.
     services.AddMvc();
 }