You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have the ability to do CRUD on campaigns and admins and can make a user session, we need to be able to actually create that session from our front end. This issue implements those endpoints for the v1 schema.
POST /v1/auth/login; sends credentials as JSON to the server for authentication. Returns a session cookie and a 302 status.
POST /v1/auth/logout; deletes a session and returns a 302 status.
Each of these endpoints should also have appropriate testing!
Copilot Prompts
How can I group Express endpoints together? How do I add new headers to the server's response? Help me write a(n) <insert http verb> endpoint using ExpressJS.
Target Date: 11/30/23 📆
The text was updated successfully, but these errors were encountered:
@danchan020, you may want to work on an admin or campaign route first. I forgot to add dependencies here, but these endpoints will require the session authentication stuff to be built out. If you look here, I have ordered things roughly how they need to be created.
Description
Now that we have the ability to do CRUD on
campaign
s andadmin
s and can make a user session, we need to be able to actually create that session from our front end. This issue implements those endpoints for thev1
schema.Dependencies
Spec
We need to create:
Each of these endpoints should also have appropriate testing!
Copilot Prompts
How can I group Express endpoints together?
How do I add new headers to the server's response?
Help me write a(n) <insert http verb> endpoint using ExpressJS.
Target Date: 11/30/23 📆
The text was updated successfully, but these errors were encountered: