瀏覽代碼

删除app.js

liucf 5 年之前
父節點
當前提交
d33ce1e507
共有 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'));
-});