Skip to content

Commit

Permalink
add use for server file
Browse files Browse the repository at this point in the history
  • Loading branch information
Falsal committed Nov 10, 2023
1 parent e9602a9 commit f1ff492
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ app.listen(port);
app.use("/app_static", express.static(path.join(__dirname, '../app/app_static')));
app.use('/api', proxy({target: 'http://localhost:6060', secure: false}));
app.use("/public", express.static(path.join(__dirname, '../api/public'), {fallthrough: false}));
app.use("/ip", ()=> response.send(request.ip), {fallthrough: false});

app.use((req, res, next) => {
//res.append('Access-Control-Allow-Origin', ['*']);
Expand Down

0 comments on commit f1ff492

Please sign in to comment.