Skip to content

Commit

Permalink
hide secret
Browse files Browse the repository at this point in the history
  • Loading branch information
petertimwalker committed May 24, 2024
1 parent 1f01b27 commit 762f170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const app = express();
const PORT = process.env.PORT || 3000;

// Store your API key securely in an environment variable
const API_KEY = process.env.API_KEY || 'your-default-api-key';
const API_KEY = process.env.API_KEY || 'API_KEY not defined';

app.get('/api/key', (req, res) => {
res.json({ apiKey: API_KEY });
Expand Down

0 comments on commit 762f170

Please sign in to comment.