- POST /api/v1/chats (ensure chat between users, normalized pair) - GET /api/v1/chats (list with last message + unread) - GET /api/v1/chats/:id/messages - POST /api/v1/chats/:id/messages (send text/photo, push via WS) - PUT /api/v1/chats/:id/read (mark all read) - PUT /api/v1/messages/:msgId (edit, owner only) - DELETE /api/v1/messages/:msgId (soft delete) - POST /api/v1/blocks, DELETE /api/v1/blocks/:id - POST /api/v1/reports - WS /ws?token= (real-time message push, ping/pong) - migrations 0003: chats, messages, blocks, reports
17 lines
414 B
Modula-2
17 lines
414 B
Modula-2
module github.com/buhapp/backend
|
|
|
|
go 1.22
|
|
|
|
require (
|
|
github.com/gofiber/fiber/v2 v2.52.5
|
|
github.com/gofiber/contrib/jwt v1.0.10
|
|
github.com/gofiber/contrib/websocket v1.3.0
|
|
github.com/golang-jwt/jwt/v5 v5.2.1
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jackc/pgx/v5 v5.7.1
|
|
github.com/joho/godotenv v1.5.1
|
|
github.com/minio/minio-go/v7 v7.0.77
|
|
github.com/redis/go-redis/v9 v9.7.0
|
|
golang.org/x/crypto v0.27.0
|
|
)
|