chore(app) transferred codebase from Lab2

This commit is contained in:
imadev
2026-10-26 19:40:35 +03:00
parent 0ab3a341aa
commit f731f9b460
45 changed files with 2653 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
package messages
import (
"gitflic.ru/project/bulla-max/mtusi2026lab2/internal/store"
"github.com/gofiber/fiber/v3"
)
func RegisterProtectedRoutes(router fiber.Router, st *store.Store) {
handler := NewHandler(st)
router.Post("/chats/:chat_id/messages", handler.CreateMessage)
router.Get("/chats/:chat_id/messages", handler.ListMessages)
}