-
Notifications
You must be signed in to change notification settings - Fork 1
Routes
John Chen edited this page Sep 30, 2020
·
3 revisions
GET '/' - Renders the Homepage of Website
GET '/signin' - Renders the sign in modal
GET '/signup' - Renders the signup modal
GET '/' - Queries all users
POST '/signup' - Adds submitted user to the database. Creates Access Token
POST '/signin' - If user is found, logs in user, creates access token
POST '/deck/cards' - Queries all decks that belong to a logged in user, joins cards
POST '/create/deck' - Creates a new deck connected to the user
GET '/dashboard' - Renders Profile, Card, and Dashboard