You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 rivejä
392 B

  1. var express = require('express');
  2. var app = express();
  3. app.get('/robots.txt', function(req, res) {
  4. res.type('text/plain');
  5. res.send("User-agent: *\nAllow: /");
  6. });
  7. app.use('/dist', express.static(__dirname + '/dist'));
  8. app.get('/', function(req, res) {
  9. res.sendFile(__dirname + '/index.html');
  10. });
  11. app.listen(8080, function() {
  12. console.log('frontend listening on port 8080');
  13. });