1 Star 0 Fork 0

value.生/education-answer-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.js 1008 Bytes
一键复制 编辑 原始数据 按行查看 历史
value.生 提交于 2023-12-27 13:51 . feat: mongodb接口
const express = require('express');
const path = require('path');
const cookieParser = require('cookie-parser');
const logger = require('morgan');
const indexRouter = require('./routes/index');
const userRouter = require('./routes/user');
const cartRouter = require('./routes/cart')
const homeRouter = require('./routes/home')
const orderRouter = require('./routes/order')
const seckillRouter = require('./routes/seckill')
const daichunyuan = require('./routes/daichunyuan')
var cors=require('cors')
const app = express();
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(cors())
app.use('/', indexRouter);
app.use('/user/', userRouter);
app.use('/cart/', cartRouter);
app.use('/home/', homeRouter);
app.use('/order/', orderRouter);
app.use('/daichunyuan/', daichunyuan);
app.use('/activity/seckill/', seckillRouter);
module.exports = app;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/value-health/education-answer-server.git
git@gitee.com:value-health/education-answer-server.git
value-health
education-answer-server
education-answer-server
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385