This commit is contained in:
Pavel 2024-05-14 23:13:13 +03:00
parent f0de511e6c
commit 018febf728
2 changed files with 5 additions and 2 deletions

@ -39,9 +39,9 @@ func (c *Controller) Register(router fiber.Router) {
router.Get("/steps", c.GetStepsWithPagination)
router.Patch("/steps", c.UpdateListSteps)
//todo поменять как было GET webhook/create
router.Get("/", c.WebhookCreate)
router.Get("/webhook/create", c.WebhookCreate)
//todo поменять как было webhook/delete
router.Delete("/", c.WebhookDelete)
router.Delete("/webhook/delete", c.WebhookDelete)
router.Patch("/pipelines", c.UpdateListPipelines)
router.Get("/pipelines", c.GetPipelinesWithPagination)
router.Patch("/rules/:quizID", c.ChangeQuizSettings)

@ -19,6 +19,9 @@ type Server struct {
func NewServer(config ServerConfig) *Server {
app := fiber.New()
app.Use(middleware.JWTAuth())
app.Use("/webhook", func(c *fiber.Ctx) error {
return c.Next()
})
s := &Server{
Controllers: config.Controllers,