feat: draft/online post field #26

This commit is contained in:
Florian Sylvain
2024-06-14 16:40:01 +02:00
parent 0759ab6d70
commit c69876a704
11 changed files with 111 additions and 13 deletions
+1
View File
@@ -13,6 +13,7 @@ func GetPostsPage(w http.ResponseWriter, _ *http.Request) {
formattedPosts = append(formattedPosts, map[string]interface{}{
"ID": post.ID,
"Title": post.Title,
"IsOnline": post.IsOnline,
"CreatedAt": post.CreatedAt.Format("2006-01-02 15:04:05"),
"UpdatedAt": post.UpdatedAt.Format("2006-01-02 15:04:05"),
})