Skip to content

Commit

Permalink
paystack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jack03042 committed Apr 11, 2024
1 parent 1efcba7 commit 6487baf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
app.get('/paystack-key', (req, res) => {
res.set('Cache-Control', 'no-store');
res.json({ key: process.env.PAYSTACK_PUBLIC_KEY });
});

const express = require('express');
const path = require('path');
require('dotenv').config();
Expand All @@ -17,9 +22,6 @@ app.listen(port, () => {
console.log(`Server running on port ${port}`);
});

app.get('/paystack-key', (req, res) => {
res.set('Cache-Control', 'no-store');
res.json({ key: process.env.PAYSTACK_PUBLIC_KEY });
});



0 comments on commit 6487baf

Please sign in to comment.