Skip to content

Commit

Permalink
chore: add url tracking field in response (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinit717 authored Oct 11, 2024
1 parent 75af86c commit 91fb047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ func GetAllURLs(ctx *gin.Context, db *bun.DB) {
CreatedAt: tinyURL.CreatedAt,
ID: tinyURL.ID,
UserID: tinyURL.UserID,
LastAccessedAt: tinyURL.LastAccessedAt,
AccessCount: tinyURL.AccessCount,
CreatedBy: tinyURL.CreatedBy,
})
}

Expand Down

0 comments on commit 91fb047

Please sign in to comment.