mw
This commit is contained in:
parent
f0de511e6c
commit
018febf728
@ -39,9 +39,9 @@ func (c *Controller) Register(router fiber.Router) {
|
|||||||
router.Get("/steps", c.GetStepsWithPagination)
|
router.Get("/steps", c.GetStepsWithPagination)
|
||||||
router.Patch("/steps", c.UpdateListSteps)
|
router.Patch("/steps", c.UpdateListSteps)
|
||||||
//todo поменять как было GET webhook/create
|
//todo поменять как было GET webhook/create
|
||||||
router.Get("/", c.WebhookCreate)
|
router.Get("/webhook/create", c.WebhookCreate)
|
||||||
//todo поменять как было webhook/delete
|
//todo поменять как было webhook/delete
|
||||||
router.Delete("/", c.WebhookDelete)
|
router.Delete("/webhook/delete", c.WebhookDelete)
|
||||||
router.Patch("/pipelines", c.UpdateListPipelines)
|
router.Patch("/pipelines", c.UpdateListPipelines)
|
||||||
router.Get("/pipelines", c.GetPipelinesWithPagination)
|
router.Get("/pipelines", c.GetPipelinesWithPagination)
|
||||||
router.Patch("/rules/:quizID", c.ChangeQuizSettings)
|
router.Patch("/rules/:quizID", c.ChangeQuizSettings)
|
||||||
|
@ -19,6 +19,9 @@ type Server struct {
|
|||||||
func NewServer(config ServerConfig) *Server {
|
func NewServer(config ServerConfig) *Server {
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
app.Use(middleware.JWTAuth())
|
app.Use(middleware.JWTAuth())
|
||||||
|
app.Use("/webhook", func(c *fiber.Ctx) error {
|
||||||
|
return c.Next()
|
||||||
|
})
|
||||||
|
|
||||||
s := &Server{
|
s := &Server{
|
||||||
Controllers: config.Controllers,
|
Controllers: config.Controllers,
|
||||||
|
Loading…
Reference in New Issue
Block a user