Skip to content

Commit

Permalink
fixed axios ssrf dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurabhchaddha6 committed Aug 13, 2024
1 parent e23107d commit a95932a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions app/api/register/[tournamentId]/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
import { dbConnect } from '../../../../lib/dbConnect';
import Tournament from '../../../../model/Tournament';

export default async function handler(req, res) {
if (req.method !== 'POST') {
return res.status(405).json({ error: 'Method Not Allowed' });
}

export default async function POST(req, res) {

const { tournamentId, teamName, members, inviteCode } = req.body;

if (!tournamentId || !teamName || !members || members.length === 0) {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a95932a

Please sign in to comment.