Skip to content

Commit

Permalink
Support for marketplace icons
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinguidee committed Sep 14, 2023
1 parent 1cc726b commit 980e439
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions router/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
func addServicesRoutes(r *gin.RouterGroup) {
r.GET("/available", handleServicesAvailable)
r.POST("/install", handleServiceInstall)
r.Static("/icons", "./live/services/icons")
}

// handleServicesAvailable handles the retrieval of all available services.
Expand Down
6 changes: 6 additions & 0 deletions types/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ type Service struct {
// Description describes the service in a few words.
Description string `yaml:"description" json:"description"`

// Color is the main color of the service.
Color *string `yaml:"color,omitempty" json:"color,omitempty"`

// Icon is the icon link of the service, located in ./live/services/icons/.
Icon *string `yaml:"icon,omitempty" json:"icon,omitempty"`

// Features describes some features of the service to help Vertex.
Features *Features `yaml:"features,omitempty" json:"features,omitempty"`

Expand Down

0 comments on commit 980e439

Please sign in to comment.