2eme partie last push

This commit is contained in:
lfirmin
2026-05-11 15:47:08 +02:00
parent a5f888b3c1
commit 339ba8fe5b
6 changed files with 179 additions and 64 deletions
+12 -7
View File
@@ -28,6 +28,7 @@ func NewServer(
auditRepo *db.AuditLogRepo,
panelRepo *db.PanelConfigRepo,
convocRepo *db.ConvocationConfigRepo,
convocPanelRepo *db.ConvocationPanelRepo,
guildID string,
bot BotService,
) *Server {
@@ -90,12 +91,13 @@ func NewServer(
}
}
convocH := &handlers.ConvocationsHandler{
TicketRepo: sqlDB,
ConvocRepo: convocRepo,
GuildID: guildID,
BotService: convocBot,
DiscordInfo: convocInfo,
Renderer: rnd,
TicketRepo: sqlDB,
ConvocRepo: convocRepo,
ConvocPanelRepo: convocPanelRepo,
GuildID: guildID,
BotService: convocBot,
DiscordInfo: convocInfo,
Renderer: rnd,
}
transcriptsH := &handlers.TranscriptsHandler{
TicketRepo: sqlDB,
@@ -153,7 +155,10 @@ func NewServer(
// Convocations
r.Get("/convocations", convocH.HandleGET)
r.Post("/convocations", convocH.HandlePOST)
r.Post("/convocations/send-panel", convocH.HandleSendPanel)
r.Post("/convocations/create", convocH.HandleCreate)
r.Post("/convocations/panels/new", convocH.HandleCreatePanel)
r.Post("/convocations/panels/{id}/send", convocH.HandleSendPanel)
r.Post("/convocations/panels/{id}/delete", convocH.HandleDeletePanel)
// Transcripts (list + download only; view is outside securityHeaders)
r.Get("/transcripts", transcriptsH.HandleList)