Removed coupling with useless services in actions

This commit is contained in:
PB
2025-10-22 17:10:54 +02:00
parent e546d16222
commit ee0b512bfe
10 changed files with 54 additions and 44 deletions

View File

@@ -19,8 +19,7 @@ func (s *Server) AccessHandlerFn(c *fiber.Ctx) error {
header := new(dto.AuthorizationHeaderDTO)
c.ReqHeaderParser(header)
accessUI := ui.NewAccessActionUI(guardSrv, s.GetDatabase(), s.GetCache())
if err := accessUI.Execute(header, url, srvName); err != nil {
if err := ui.NewAccessActionUI(guardSrv).Execute(header, url, srvName); err != nil {
return s.Error(c, fiber.StatusNotFound, err.Error())
}