ANSHIKA-26 / WordWise

Blogging website
https://anshika-26.github.io/WordWise/
MIT License
81 stars 334 forks source link

Added backend api for both answered and unanswered question #1793

Closed Sawan-Kushwah closed 2 weeks ago

Sawan-Kushwah commented 2 weeks ago

issue : #1786 fixes: #1786

https://github.com/user-attachments/assets/40f19071-b924-4e59-9ef9-26e5e80dba1e

This PR introduces the backend functionality for a Question and Answer (Q&A) forum on the website. The following features have been implemented:

Schema Definition: The schema for Question and Answer has been added to the database.

Backend Actions:
    createQuestion: A backend action that allows authenticated users to create questions.
    createAnswer: A backend action that allows authenticated users to answer questions.
    getAnsweredQuestions: A backend action to fetch all answered questions, available to all users.
    getUnansweredQuestions: A backend action to fetch all unanswered questions, available to all users.

API Endpoints:

The endpoints for testing all route have been created 

Pull Request Checklist

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
word-wise ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 4:54pm
github-actions[bot] commented 2 weeks ago

🎉🎉 Thank you for your contribution! Your PR #1793 has been merged! 🎉🎉