From 7065c8be8f1c1aa010028d4af1dcd8730f7fe618 Mon Sep 17 00:00:00 2001 From: luoyonghuang <2308014474@qq.com> Date: Wed, 9 Oct 2024 11:18:45 +0800 Subject: [PATCH] Delete 'app.js' --- app.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 app.js diff --git a/app.js b/app.js deleted file mode 100644 index 0d25f71..0000000 --- a/app.js +++ /dev/null @@ -1,17 +0,0 @@ -const express = require('express'); -const app = express(); -const router = require('./router'); -const bodyParser = require('body-parser'); - -// 中间件 -app.use(bodyParser.json()); -app.use(bodyParser.urlencoded({ extended: true })); - -// 使用路由 -app.use('/', router); - -// 监听端口 -const PORT = process.env.PORT || 3000; -app.listen(PORT, () => { - console.log(`Server running on port ${PORT}`); -});