enroll controller + db connection

This commit is contained in:
SowinskiBraeden committed 2021-10-04 23:13:21 -07:00
1 parent b069ee1aa2
commit f8d006fe8b
12 files changed
+186 -48

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package routes
import (
"school-management/controllers"
"github.com/gofiber/fiber/v2"
)
type Person struct {
Name string `json:"name" form:"name"`
Email string `json:"email" form:"email"`
}
func Setup(app *fiber.App) {
app.Post("/api/enroll", controllers.Enroll)
}