forked from mtusi2026/mtusi2026lab2
14 lines
349 B
Go
14 lines
349 B
Go
package chats
|
|
|
|
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", handler.CreateChat)
|
|
router.Get("/chats", handler.ListChats)
|
|
router.Get("/chats/:chat_id", handler.GetChat)
|
|
}
|