Skip to content

Commit

Permalink
feat: allow GET method for votes API route
Browse files Browse the repository at this point in the history
  • Loading branch information
bonustrack authored Jan 4, 2024
1 parent 387ebff commit 44de118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { snapshotFee } from './lib/nftClaimer/utils';

const router = express.Router();

router.post('/votes/:id', async (req, res) => {
router.all('/votes/:id', async (req, res) => {
const { id } = req.params;
const votesReport = new VotesReport(id, storageEngine(process.env.VOTE_REPORT_SUBDIR));

Expand Down

0 comments on commit 44de118

Please sign in to comment.