Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Public Route to fetch the form public data using slug #22

Open
piyushgarg-dev opened this issue Oct 8, 2023 · 5 comments · May be fixed by #33
Open

Create a Public Route to fetch the form public data using slug #22

piyushgarg-dev opened this issue Oct 8, 2023 · 5 comments · May be fixed by #33
Assignees
Labels
enhancement New feature or request hacktoberfest Hacktoberfest Accepted Issues hacktoberfest-accepted Hacktoberfest Accepted

Comments

@piyushgarg-dev
Copy link
Owner

piyushgarg-dev commented Oct 8, 2023

We need to create a public query to fetch the form public information using the form slug and custom domain.

This data would be consumed by the frontend to render a form and get the submissions.

Check Issue piyushgarg-dev/review-app#55

@piyushgarg-dev piyushgarg-dev self-assigned this Oct 8, 2023
@piyushgarg-dev piyushgarg-dev added enhancement New feature or request hacktoberfest Hacktoberfest Accepted Issues hacktoberfest-accepted Hacktoberfest Accepted labels Oct 8, 2023
@anaghninja432
Copy link

I would like to contribute to this issue. Please guide me in doing so , as quite frankly I am a bit new to this. Thank You.

@daemonX10
Copy link
Contributor

I can do it

@psworld
Copy link

psworld commented Oct 8, 2023

@piyushgarg-dev Shouldn't the slug column under the Form model be @unique ? Currently it's not unique. otherwise can't apply prismaClient.form.findUnique ?

Should we add @unique to slug ?

@psworld psworld linked a pull request Oct 8, 2023 that will close this issue
1 task
@piyushgarg-dev
Copy link
Owner Author

No, We should not do that @psworld. I'll tell you why.
Can you also send me your email address?

@piyushgarg-dev
Copy link
Owner Author

Hey @psworld This is an invalid email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest Hacktoberfest Accepted Issues hacktoberfest-accepted Hacktoberfest Accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants