liucf 5 лет назад
Родитель
Сommit
2e166e9b66
1 измененных файлов с 0 добавлено и 14 удалено
  1. 0 14
      app.js

+ 0 - 14
app.js

@@ -1,14 +0,0 @@
-const fs = require('fs');
-const path = require('path');
-const express = require('express');
-const chalk = require('chalk')
-const app = express();
-app.use(express.static(path.resolve(__dirname, './')))
-
-app.get('*', function(req, res) {
-  const html = fs.readFileSync(path.resolve(__dirname, './index.html'), 'utf-8')
-  res.send(html)
-})
-app.listen(5080, res => {
-  console.log(chalk.yellow('Start Service On 5080'));
-});