Merge pull request 'Update flow nodes api' (#70) from fix-permissions into main
Deploy / deploy (push) Successful in 15s
Details
Deploy / deploy (push) Successful in 15s
Details
Reviewed-on: https://72.56.235.246.nip.io/gitea/romanskijdev/ruspet_portal_back/pulls/70
This commit is contained in:
commit
4cdb21a295
|
|
@ -26,7 +26,7 @@ func RegisterFlowNodesRoutes(
|
|||
r.Use(handlers.JWTVerifier(ipc.Config, ipc.Database.Admin, ipc.RedisClient))
|
||||
|
||||
// Получить дерево узлов для темы
|
||||
handlers.RegisterRoute(r, http.MethodGet, "/topic/{topic_id}", s.GetFlowNodesByTopicIDHandler)
|
||||
handlers.RegisterRoute(r, http.MethodGet, "/topic/{category_id}", s.GetFlowNodesByCategoryIDHandler)
|
||||
|
||||
// CRUD операции с узлами
|
||||
handlers.RegisterRoute(r, http.MethodPost, "/", s.CreateFlowNodeHandler)
|
||||
|
|
@ -34,7 +34,7 @@ func RegisterFlowNodesRoutes(
|
|||
handlers.RegisterRoute(r, http.MethodDelete, "/", s.DeleteFlowNodeHandler)
|
||||
|
||||
// Сохранить всё дерево целиком (для UI конструктора)
|
||||
handlers.RegisterRoute(r, http.MethodPost, "/topic/{topic_id}/tree", s.SaveEntireTreeHandler)
|
||||
handlers.RegisterRoute(r, http.MethodPost, "/topic/{category_id}/tree", s.SaveEntireTreeHandler)
|
||||
|
||||
// Переместить узел (изменить порядок или родителя)
|
||||
handlers.RegisterRoute(r, http.MethodPost, "/{id}/move", s.MoveFlowNodeHandler)
|
||||
|
|
|
|||
Loading…
Reference in New Issue