Skip to content

Commit

Permalink
Merge pull request #2462 from traPtitech/impl-etag-me
Browse files Browse the repository at this point in the history
impl ETag to /me
  • Loading branch information
ramdos0207 authored Nov 17, 2024
2 parents 3ab90d3 + bdabc5a commit 7b11184
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions router/v3/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package v3

import (
"context"
"github.com/samber/lo"
"net/http"
"sort"
"time"
Expand All @@ -11,6 +10,7 @@ import (
"github.com/gofrs/uuid"
"github.com/golang-jwt/jwt/v5"
"github.com/labstack/echo/v4"
"github.com/samber/lo"
"github.com/skip2/go-qrcode"

"github.com/traPtitech/traQ/model"
Expand Down Expand Up @@ -100,8 +100,7 @@ func (h *Handlers) GetMe(c echo.Context) error {
if err != nil {
return herror.InternalServerError(err)
}

return c.JSON(http.StatusOK, echo.Map{
return extension.ServeJSONWithETag(c, echo.Map{
"id": me.GetID(),
"bio": me.GetBio(),
"groups": groups,
Expand Down

0 comments on commit 7b11184

Please sign in to comment.