Revert "Build post chat and attachment workflows"

This reverts commit 0b920da187.
This commit is contained in:
Cauê Faleiros
2026-06-09 15:57:45 -03:00
parent 0b920da187
commit 5bc4a551af
30 changed files with 204 additions and 3021 deletions

View File

@@ -9,7 +9,6 @@ import (
"mira/backend/internal/clients"
"mira/backend/internal/config"
"mira/backend/internal/database"
"mira/backend/internal/mail"
"mira/backend/internal/security"
"mira/backend/internal/users"
@@ -40,17 +39,8 @@ func New(cfg config.Config, logger *slog.Logger, db *database.DB, userStore user
tokenService := auth.NewTokenService(cfg.JWTSecret, cfg.AccessTokenTTL)
requireAuth := auth.RequireAuth(tokenService)
sessionStore := auth.NewSessionStore(db.Pool)
authRoutes := auth.NewRoutes(userStore, sessionStore, tokenService, cfg.RefreshTokenTTL, cfg.AppEnv == "production")
mailSender := mail.NewSender(mail.SMTPConfig{
Host: cfg.SMTPHost,
Port: cfg.SMTPPort,
User: cfg.SMTPUser,
Password: cfg.SMTPPassword,
From: cfg.SMTPFromEmail,
FromName: cfg.SMTPFromName,
})
userRoutes := users.NewRoutes(userStore, cfg.AppPublicURL, mailSender)
authRoutes := auth.NewRoutes(userStore, tokenService)
userRoutes := users.NewRoutes(userStore, cfg.AppPublicURL)
clientRoutes := clients.NewRoutes(clientStore)
calendarRoutes := calendar.NewRoutes(calendarStore, calendar.NewBrasilAPIProvider(cfg.CalendarAPIBaseURL), calendar.NewFeriadosBrasilProvider(), calendar.RouteOptions{
UploadMaxSizeMB: cfg.UploadMaxSizeMB,