项目接口

master
pan 4 years ago
parent 7b5c06c845
commit 7b753d06c4
  1. 3
      app.js

@ -20,8 +20,9 @@ app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use(cors({
origin:['http://localhost:5000'],
origin:[process.env.webClient],
credentials:true
}))
app.use('/', indexRouter);

Loading…
Cancel
Save