Logout and contact stuff
This commit is contained in:
1 parent
7d649ef05b
commit
b20e1f04c5
3 files changed
+138
-5
No files matched your search
@@ -31,6 +31,15 @@ func Setup(app *fiber.App) {
|
||||
app.Post("/api/student/updatePhoto", controllers.UpdateStudentPhoto)
|
||||
app.Post("/api/student/updateEmail", controllers.UpdateStudentEmail)
|
||||
|
||||
// Student Contacts
|
||||
app.Post("/api/student/createContact", controllers.CreateContact)
|
||||
app.Post("/api/student/contact/updateName", controllers.UpdateContactName)
|
||||
app.Post("/api/student/contact/updateAddress", controllers.UpdateContactAddress)
|
||||
app.Post("/api/student/contact/updatePhone", controllers.UpdateContactPhone)
|
||||
app.Post("/api/student/contact/updateEmail", controllers.UpdateContactEmail)
|
||||
app.Post("/api/student/contact/updatePriority", controllers.UpdateContactPriority)
|
||||
app.Post("/api/student/contact/removeContact", controllers.RemoveContact)
|
||||
|
||||
// Login + Register handling
|
||||
app.Get("/api/teacher", controllers.Teacher)
|
||||
app.Post("/api/teacher/register", controllers.RegisterTeacher)
|
||||
@@ -43,4 +52,7 @@ func Setup(app *fiber.App) {
|
||||
app.Post("/api/teacher/updateName", controllers.UpdateTeacherName)
|
||||
app.Post("/api/teacher/updateHomeroom", controllers.UpdateTeacherHomeroom)
|
||||
app.Post("/api/teacher/updateEmail", controllers.UpdateTeacherEmail)
|
||||
|
||||
// General Routes
|
||||
app.Post("/api/logout", controllers.Logout)
|
||||
}
|
||||
Reference in new issue
Block a user