For users it is
And it has vaidateEmail() middleware too
/admin/auth/create-account requirements : firstName , lastName , password /admin/auth/login-account requirements : firstName , password
it has test part users can solve bunch of tests
tests/solve-test (post request ) requirements : userId, testId, selectedAnswer , themeName(request.body)
it has only send email : requirements : to , body , subject authRole , authToken
admin/tests/create-test requirements : themeName, question, a, b, c, d, trueAnswer, adminId /admin/tests/update-test/:testId requirements : testId(params) themeName, question, a, b, c, d, trueAnswer (body) /admin/tests/delete-test/:testId requirements : testId(params) /admin/tests/get/:adminId get admin created Test (adminId) params /admin/tests/get/:testId get test by its id (testId) params
create theme : /admin/theme/create-theme , requirements : themeName , adminId get theme by its id : admin/theme/get-theme/:themeId requirements : themeId request params get all themes admin/theme//get-all admin created themes : admin/theme/get-theme/:adminId requirements : adminId request params update theme : admin/theme/update-theme/:themeId requirements : themeId params; updatedThemName, adminId request.body;
delete theme : admin/theme/delete-theme/:themeId requirements themeId request.params ; adminId request.body
/admin/user-score/get/user/score/:userId requirements : userId request.params /admin/user-score/get-all n o requirements