Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Una vez iniciado el servidor puedes acceder a la documentación desde [http://lo
- `GET /api/v1/chat/rooms`: Obtiene todas las salas del usuario actual
- `GET /api/v1/chat/rooms/{roomId}`: Obtiene información de una sala específica
- `GET /api/v1/chat/rooms/{roomId}/messages`: Obtiene mensajes de una sala específica
- `GET /api/v1/chat/rooms/{roomId}/messages/paginated`: Obtiene mensajes de una sala específica paginados

#### Chats Directos
- `POST /api/v1/chat/direct/{otherUserId}`: Crea un chat directo entre el usuario autenticado y otro usuario
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/chat_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (h *ChatHandler) GetUserDirectChats(w http.ResponseWriter, r *http.Request)
// @Failure 401 {string} string "No autorizado"
// @Failure 404 {string} string "Chat no encontrado"
// @Failure 500 {string} string "Error interno del servidor"
// @Router /chat/direct/{chatId}/messages [get]
// @Router /chat/direct/{chatId}/messages/paginated [get]
func (h *ChatHandler) GetDirectChatMessages(w http.ResponseWriter, r *http.Request) {
chatID := chi.URLParam(r, "chatId")

Expand Down Expand Up @@ -354,7 +354,7 @@ func (h *ChatHandler) JoinRoom(w http.ResponseWriter, r *http.Request) {
// @Failure 401 {string} string "No autorizado"
// @Failure 404 {string} string "Sala no encontrada"
// @Failure 500 {string} string "Error interno del servidor"
// @Router /chat/rooms/{roomId}/messages/simple [get]
// @Router /chat/rooms/{roomId}/messages [get]
func (h *ChatHandler) GetRoomMessagesSimple(w http.ResponseWriter, r *http.Request) {
roomID := chi.URLParam(r, "roomId")

Expand Down