core/internal/controllers/http_controllers/quiz/route.go

20 lines
499 B
Go
Raw Normal View History

2024-10-25 15:26:03 +00:00
package quiz
import "github.com/gofiber/fiber/v2"
func (r *Quiz) Register(router fiber.Router) {
router.Post("/create", r.CreateQuiz)
router.Post("/getList", r.GetQuizList)
router.Patch("/edit", r.UpdateQuiz)
router.Post("/copy", r.CopyQuiz)
router.Post("/history", r.GetQuizHistory)
router.Delete("/delete", r.DeleteQuiz)
router.Patch("/archive", r.ArchiveQuiz)
router.Post("/move", r.QuizMove)
router.Post("/template", r.TemplateCopy)
}
func (r *Quiz) Name() string {
return "quiz"
}