авторизация fixed

This commit is contained in:
2025-12-18 08:33:12 +03:00
parent 4e4571b3db
commit b5b9504019
6 changed files with 161 additions and 293 deletions

View File

@@ -115,7 +115,7 @@ func main() {
api := r.Group("/api")
api.Use(middleware.AuthMiddleware(accountRepo))
api.Use(middleware.AuthMiddleware(accountRepo, cfg.Telegram.Token))
{
// Drafts & Invoices
api.GET("/drafts", draftsHandler.GetDrafts)