Skip to content

Commit

Permalink
add log for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
petertimwalker committed May 24, 2024
1 parent f573572 commit e1edfdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ app.use(cors());
const API_KEY = process.env.API_KEY || 'API_KEY not defined';

app.get('/api/key', (req, res) => {
console.log(`request from ${req}`);
res.json({ apiKey: API_KEY });
});

Expand Down

0 comments on commit e1edfdd

Please sign in to comment.