Skip to content

Server Routes

Katherine Bowler edited this page Jun 3, 2016 · 2 revisions

List of Routes

SignUpPatient

path: '/signup-patient' Signs up the patient with the info entered into the sign up modal and hashes the password

SignUpClinician

path: '/signup-clinician' Signs up the clinicians with the info entered into the sign up modal and hashes the password

GetPatientLetters

path: '/get-patient-letters' Gets patient letters for the client dashboard for the current signed in patient

GetAllPatientsLetters

path: '/get-all-patients-letters' Gets the letters for all of the clinician's patients so they can be used to display on the clinician dashboard

LoginPatient

path: '/login-patient' Checks that the login credentials match

LoginClinician

path: '/login-clinician' Checks that the login credentials match

AddNewLetter

path: '/add-new-letter' Inserts a new letter into the database with the given patient id, clinician id, statuses, and date created

ChangeLetterStatus

path: '/change-letter-status' Updates the status (On the waiting list, in progress, sent) in the database for the chosen letter

RemoveLetter

path: '/remove-letter' Deletes the chosen letter from the database