-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(users_pagination): Paginate /users endpoint #62
Conversation
Signed-off-by: deo002 <oberoidearsh@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, haven't tested yet. Please always add PR description.
Maybe we should add templates and encourage these practices. @GMishx @Kaushl2208 WDYT?
@@ -69,7 +69,7 @@ func AuthenticationMiddleware() gin.HandlerFunc { | |||
er := models.LicenseError{ | |||
Status: http.StatusUnauthorized, | |||
Message: "Invalid token", | |||
Error: err.Error(), | |||
Error: "Invalid token", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have something different here? (Not important BTW)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Templates are always helpful in keeping things organized and contributions are always welcome 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, working as expected.
Paginated the /users endpoint.