lab2 done
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Khakimov Dmitrij
2026-10-06 22:45:35 +03:00
parent 47a3cd582d
commit f99ddb1951
74 changed files with 2785 additions and 112 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func (h *Chat) requestIDMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
func (h *Chat) authenticate(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
user, err := h.useCase.Authenticate(c.Request().Context(), c.Request().Header.Get("X-User-Id"))
user, err := h.useCase.Authenticate(c.Request().Context(), bearerToken(c))
if err != nil {
return h.useCaseError(c, err)
}