ЛР 2 — БПИ2301 — Каменски — на 5 #20

Closed
kmwk10 wants to merge 40 commits from kmwk10/mtusi2026lab2:solution/BPI2301-kamenski into master
5 changed files with 10 additions and 10 deletions
Showing only changes of commit 86f4aadead - Show all commits
+2 -2
View File
@@ -33,7 +33,7 @@ func (h *AuthHandler) CreateSession(w http.ResponseWriter, r *http.Request) {
return
}
if err != nil {
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
@@ -65,7 +65,7 @@ func (h *AuthHandler) RevokeSession(w http.ResponseWriter, r *http.Request) {
return
}
if err != nil {
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
+3 -3
View File
@@ -71,7 +71,7 @@ func (h *ChatHandler) Create(w http.ResponseWriter, r *http.Request) {
)
return
case err != nil:
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
@@ -106,7 +106,7 @@ func (h *ChatHandler) Get(w http.ResponseWriter, r *http.Request) {
)
return
case err != nil:
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
@@ -134,7 +134,7 @@ func (h *ChatHandler) List(w http.ResponseWriter, r *http.Request) {
)
return
case err != nil:
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
+2 -2
View File
@@ -65,7 +65,7 @@ func (h *MessageHandler) Create(w http.ResponseWriter, r *http.Request) {
)
return
case err != nil:
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
@@ -114,7 +114,7 @@ func (h *MessageHandler) List(w http.ResponseWriter, r *http.Request) {
)
return
case err != nil:
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
+2 -2
View File
@@ -54,7 +54,7 @@ func (h *UserHandler) Create(w http.ResponseWriter, r *http.Request) {
return
}
if err != nil {
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
@@ -82,7 +82,7 @@ func (h *UserHandler) Me(w http.ResponseWriter, r *http.Request) {
return
}
if err != nil {
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}
+1 -1
View File
@@ -34,7 +34,7 @@ func Auth(auth authenticator) func(http.Handler) http.Handler {
return
}
if err != nil {
httpx.WriteInternal(w, requestID)
httpx.WriteInternalError(w, requestID)
return
}