Browse Source

Serve everything in public at root

Otherwise we were limited to only serving staic content in /assets
pm2
Luke Childs 8 years ago
parent
commit
27cd0aa0e2
  1. 2
      index.js
  2. 0
      public/assets/iconfont.woff
  3. 0
      public/assets/style.css

2
index.js

@ -25,7 +25,7 @@ app.get('/node/:id', controllers.node);
app.get('/about', controllers.about);
// Serve assets with cache headers
app.use('/assets', express.static(`${__dirname}/assets`, { maxAge: '1 year' }));
app.use(express.static(`${__dirname}/public`, { maxAge: '1 year' }));
// Start app
app.listen(port, () => console.log(`Tor Explorer listening on port ${port}`));

0
assets/iconfont.woff → public/assets/iconfont.woff

0
assets/style.css → public/assets/style.css

Loading…
Cancel
Save