Enroll Student and Register Teacher api done

This commit is contained in:
SowinskiBraeden committed 2021-10-05 21:23:36 -07:00
1 parent f8d006fe8b
commit 0a678badb3
6 files changed
+375 -72

No files matched your search

+20 -1
View File
@@ -12,5 +12,24 @@ type Person struct {
}
func Setup(app *fiber.App) {
app.Post("/api/enroll", controllers.Enroll)
// API Handling
app.Post("/api/student/enroll", controllers.Enroll)
app.Post("/api/student/updateName", controllers.UpdateStudentName)
app.Post("/api/student/updateGradeLevel", controllers.UpdateStudentGradeLevel)
app.Post("/api/student/updateHomeroom", controllers.UpdateStudentHomeroom)
app.Post("/api/student/updateLocker", controllers.UpdateStudentLocker)
app.Post("/api/studnet/updateYOG", controllers.UpdateStudentYOG)
app.Post("/api/studnet/updateContacts", controllers.UpdateStudentContacts)
app.Post("/api/student/updatePassword", controllers.UpdateStudentPassword)
app.Post("/api/student/updateAddress", controllers.UpdateStudentAddress)
app.Post("/api/student/updatePhoto", controllers.UpdateStudentPhoto)
app.Post("/api/student/updateEmail", controllers.UpdateStudentEmail)
app.Post("/api/teacher/register", controllers.RegisterTeacher)
app.Post("/api/teacher/updatePassword", controllers.UpdateTeacherPassword)
app.Post("/api/teacher/updateAddress", controllers.UpdateTeacherAddress)
app.Post("/api/teacher/updatePhoto", controllers.UpdateTeacherPhoto)
app.Post("/api/teacher/updateName", controllers.UpdateTeacherName)
app.Post("/api/teacher/updateHomeroom", controllers.UpdateTeacherHomeroom)
app.Post("/api/teacher/updateEmail", controllers.UpdateTeacherEmail)
}