Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ test:
# Run the application
run:
@echo "Running $(BINARY_NAME)..."
@$(GO) run $(MAIN_PATH)
@$(GO) run $(MAIN_PACKAGE)/main.go $(MAIN_PACKAGE)/version.go

# Run the application with test environment (using fake service)
run-test:
@echo "Running $(BINARY_NAME) with test environment..."
@APP_ENV=test $(GO) run $(MAIN_PATH)
@APP_ENV=test $(GO) run $(MAIN_PACKAGE)/main.go $(MAIN_PACKAGE)/version.go

# Install dependencies
deps:
Expand Down
3 changes: 3 additions & 0 deletions internal/api/handlers/v0/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type PaginatedResponse struct {
// Metadata contains pagination metadata
type Metadata struct {
NextCursor string `json:"next_cursor,omitempty"`
Count int `json:"count,omitempty"`
Total int `json:"total,omitempty"`
}

// ServersHandler returns a handler for listing registry items
Expand Down Expand Up @@ -82,6 +84,7 @@ func ServersHandler(registry service.RegistryService) http.HandlerFunc {
if nextCursor != "" {
response.Metadata = Metadata{
NextCursor: nextCursor,
Count: len(registries),
}
}

Expand Down