Skip to content

Conversation

vansh909
Copy link
Contributor

Closes: #1192


Describe the add-ons or changes you've made πŸ“ƒ

  • Implemented API to accept or reject collaboration invitations.
  • Added a new route:
    POST /collaboration/accept/:token β†’ For accepting the invite.
    POST /collaboration/reject/:token β†’ For rejecting the invite.
  • Integrated token-based validation to ensure only authorized users can act on the invitation.
  • Updated controller logic to handle invitation acceptance/rejection.
  • Enhanced error handling and response structure.

Screenshots πŸ“·

image

Type of change β˜‘οΈ

  • New feature

Copy link

vercel bot commented Aug 31, 2025

@vansh909 is attempting to deploy a commit to the avdheshvarshney's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

@Avdhesh-Varshney
Copy link
Member

@vansh909 Resolve all conflicts.

Use the below git command,

git merge origin main

This will help you.

@Avdhesh-Varshney
Copy link
Member

Avdhesh-Varshney commented Sep 2, 2025

for project /undefined?

What's the response?

@vansh909
Copy link
Contributor Author

vansh909 commented Sep 3, 2025

for project /undefined?

What's the response?

The screenshot was taken earlier as I was trying something but that didn't worked , so i changed the response to "You have accepted/rejected the collaboration invitation" before pushing.

Copy link
Member

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest all OK

Copy link
Member

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK Cool βœ…

@Avdhesh-Varshney Avdhesh-Varshney merged commit a65b153 into Code-A2Z:main Sep 8, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement API to Accept/Reject Collaboration Invite (Backend)

2 participants