debug/api-router-remove-and-delete-contact

This commit is contained in:
SowinskiBraeden committed 2022-02-09 13:46:42 -08:00
1 parent 0d05828c9c
commit 2bc558b4e0
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -846,7 +846,7 @@ func CreateContact(c *fiber.Ctx) error {
}) })
} }
func RemoveContact(c *fiber.Ctx) error { func DeleteContact(c *fiber.Ctx) error {
var data map[string]string var data map[string]string
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
+3 -2
View File
@@ -20,7 +20,8 @@ func Setup(app *fiber.App) {
app.Post("/api/student/updateHomeroom", controllers.UpdateStudentHomeroom) app.Post("/api/student/updateHomeroom", controllers.UpdateStudentHomeroom)
app.Post("/api/student/updateLocker", controllers.UpdateStudentLocker) app.Post("/api/student/updateLocker", controllers.UpdateStudentLocker)
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/addContact", controllers.AddStudentContact)
app.Post("/api/student/removeContact", controllers.RemoveStudentContact)
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/resetPassword", controllers.ResetStudentPassword)
app.Post("/api/student/updateAddress", controllers.UpdateStudentAddress) app.Post("/api/student/updateAddress", controllers.UpdateStudentAddress)
@@ -35,7 +36,7 @@ func Setup(app *fiber.App) {
app.Post("/api/student/contact/updateWorkPhone", controllers.UpdateContactWorkPhone) app.Post("/api/student/contact/updateWorkPhone", controllers.UpdateContactWorkPhone)
app.Post("/api/student/contact/updateEmail", controllers.UpdateContactEmail) app.Post("/api/student/contact/updateEmail", controllers.UpdateContactEmail)
app.Post("/api/student/contact/updatePriority", controllers.UpdateContactPriority) app.Post("/api/student/contact/updatePriority", controllers.UpdateContactPriority)
app.Post("/api/student/contact/removeContact", controllers.RemoveContact) app.Post("/api/student/contact/deleteContact", controllers.DeleteContact)
// Teacher Login Handling // Teacher Login Handling
app.Get("/api/teacher", controllers.Teacher) app.Get("/api/teacher", controllers.Teacher)