Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Create API route to add attempts to Firebase #321

Description

@khandrew1
  • Create a new API route that adds attempts to Firebase backend
  • This is an example of how an attempts document looks like
    image
  • Call it addAttempt.js
  • You can look at updateUserInfo.js on some information, but you are adding a document not updating, so look into firebase docs on how to do that
  • You can also look at the session function in [...nextauth].js on how we pull data from that collection
  • Make sure the route is authenticated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions