25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

server.js 392 B

1234567891011121314151617
  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. });