diff --git a/api/src/pkg/controllers/entries_controller.go b/api/src/pkg/controllers/entries_controller.go index 194a311a5..e156a55fd 100644 --- a/api/src/pkg/controllers/entries_controller.go +++ b/api/src/pkg/controllers/entries_controller.go @@ -24,13 +24,13 @@ func GetEntries(c *fiber.Ctx) error { baseEntries := make([]models.BaseEntryDetails, 0) for _, entry := range entries { baseEntries = append(baseEntries, models.BaseEntryDetails{ - Id: entry.EntryId, - Url: entry.Url, - Service: entry.Service, - Path: entry.Path, - Status: entry.Status, - Method: entry.Method, - Timestamp: entry.Timestamp, + Id: entry.EntryId, + Url: entry.Url, + Service: entry.Service, + Path: entry.Path, + StatusCode: entry.Status, + Method: entry.Method, + Timestamp: entry.Timestamp, }) } @@ -40,7 +40,6 @@ func GetEntries(c *fiber.Ctx) error { }) } - func GetEntry(c *fiber.Ctx) error { var entryData models.EntryData database.GetEntriesTable(). diff --git a/api/src/pkg/models/mizuEntry.go b/api/src/pkg/models/mizuEntry.go index 89745fdf7..b3eb7c854 100644 --- a/api/src/pkg/models/mizuEntry.go +++ b/api/src/pkg/models/mizuEntry.go @@ -18,13 +18,13 @@ type MizuEntry struct { } type BaseEntryDetails struct { - Id string `json:"id,omitempty"` - Url string `json:"url,omitempty"` - Service string `json:"service,omitempty"` - Path string `json:"path,omitempty"` - Status int `json:"status,omitempty"` - Method string `json:"method,omitempty"` - Timestamp int64 `json:"timestamp,omitempty"` + Id string `json:"id,omitempty"` + Url string `json:"url,omitempty"` + Service string `json:"service,omitempty"` + Path string `json:"path,omitempty"` + StatusCode int `json:"statusCode,omitempty"` + Method string `json:"method,omitempty"` + Timestamp int64 `json:"timestamp,omitempty"` } type EntryData struct {