add db query for listing gemlog enteries

This commit is contained in:
Travis Shears 2025-10-01 10:22:55 +02:00
parent 09fb974bd2
commit 59b46d4902
5 changed files with 85 additions and 3 deletions

View file

@ -16,6 +16,13 @@ type GemlogEntry struct {
Gemtxt string `json:"gemtxt"`
}
type GemlogListEntry struct {
Title string `json:"title"`
Slug string `json:"slug"`
Date time.Time `json:"date"`
ID string `json:"id"`
}
// NewUUID generates a new UUID v4 using crypto/rand
func NewUUID() (string, error) {
uuid := make([]byte, 16)