Skip to content

Commit

Permalink
small enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Apr 15, 2020
1 parent 38b36b1 commit 3f4efe2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cve-alert-restapi/request-handler/requestHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ func getCategoriesOfOther(c echo.Context) error {
}

func getPlatforms(c echo.Context) error {
var platforms []string
var platforms []alertmanager.Platform
err := db.Select(&platforms, "SELECT DISTINCT platform FROM case_platforms")
if err != nil {
log.Error().
Expand Down
10 changes: 10 additions & 0 deletions cvecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,16 @@ type Category struct {
Category string `db:"category" json:"category"`
}

// Model for a platform
//
// swagger:model Platform
type Platform struct {
// The platform name
//
// example: Linux
Platform string `db:"platform" json:"platform"`
}

// Model for exporting filter_config.yaml
//
// swagger:model FilterConfig
Expand Down

0 comments on commit 3f4efe2

Please sign in to comment.