update/add-missing-routes

This commit is contained in:
SowinskiBraeden committed 2022-01-26 11:35:18 -08:00
1 parent 38667718a2
commit e19e270e8d
2 files changed
+10

No files matched your search

+7
View File
@@ -745,6 +745,13 @@ func UpdateTeacherPassword(c *fiber.Ctx) error {
}) })
} }
func ResetTeacherPassword(c *fiber.Ctx) error {
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
"success": nil,
"message": "not implimented",
})
}
func UpdateTeacherAddress(c *fiber.Ctx) error { func UpdateTeacherAddress(c *fiber.Ctx) error {
return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{ return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{
"success": nil, "success": nil,
+3
View File
@@ -22,6 +22,7 @@ func Setup(app *fiber.App) {
app.Post("/api/studnet/updateYOG", controllers.UpdateStudentYOG) app.Post("/api/studnet/updateYOG", controllers.UpdateStudentYOG)
app.Post("/api/studnet/updateContacts", controllers.UpdateStudentContacts) app.Post("/api/studnet/updateContacts", controllers.UpdateStudentContacts)
app.Post("/api/student/updatePassword", controllers.UpdateStudentPassword) app.Post("/api/student/updatePassword", controllers.UpdateStudentPassword)
app.Post("/api/student/resetPassword", controllers.ResetStudentPassword)
app.Post("/api/student/updateAddress", controllers.UpdateStudentAddress) app.Post("/api/student/updateAddress", controllers.UpdateStudentAddress)
app.Post("/api/student/updatePhoto", controllers.UpdateStudentPhoto) app.Post("/api/student/updatePhoto", controllers.UpdateStudentPhoto)
app.Post("/api/student/updateEmail", controllers.UpdateStudentEmail) app.Post("/api/student/updateEmail", controllers.UpdateStudentEmail)
@@ -47,6 +48,7 @@ func Setup(app *fiber.App) {
app.Post("/api/teacher/updateName", controllers.UpdateTeacherName) app.Post("/api/teacher/updateName", controllers.UpdateTeacherName)
app.Post("/api/teacher/updateHomeroom", controllers.UpdateTeacherHomeroom) app.Post("/api/teacher/updateHomeroom", controllers.UpdateTeacherHomeroom)
app.Post("/api/teacher/updateEmail", controllers.UpdateTeacherEmail) app.Post("/api/teacher/updateEmail", controllers.UpdateTeacherEmail)
app.Post("/api/teacher/resetPassword", controllers.ResetTeacherPassword)
// General Routes // General Routes
app.Post("/api/logout", controllers.Logout) app.Post("/api/logout", controllers.Logout)
@@ -58,4 +60,5 @@ func Setup(app *fiber.App) {
// General Command Handling // General Command Handling
app.Post("/api/admin/updateLockerCombo", controllers.UpdateLockerCombo) app.Post("/api/admin/updateLockerCombo", controllers.UpdateLockerCombo)
app.Post("/api/admin/renableStudent", controllers.RemoveStudentsDisabled)
} }