This commit is contained in:
André Roth
2024-11-03 14:13:57 +01:00
parent 8f8de4bd29
commit 2171c05ef8
2 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -187,9 +187,9 @@ func apiSnapshotsCreate(c *gin.Context) {
}) })
} }
type snapshotRepositoryParams struct { type snapshotRepositoryParams struct {
Name string `binding:"required"` Name string `binding:"required"`
Description string Description string
} }
// @Summary Snapshot Repository // @Summary Snapshot Repository
@@ -208,7 +208,7 @@ func apiSnapshotsCreateFromRepository(c *gin.Context) {
err error err error
repo *deb.LocalRepo repo *deb.LocalRepo
snapshot *deb.Snapshot snapshot *deb.Snapshot
b snapshotRepositoryParams b snapshotRepositoryParams
) )
if c.Bind(&b) != nil { if c.Bind(&b) != nil {
+3 -2
View File
@@ -1,8 +1,9 @@
package docs package docs
import ( import (
_ "embed" _ "embed" // embed html below
_ "github.com/swaggo/swag" // make sure swag is in go.mod
_ "github.com/swaggo/swag" // make sure swag is in go.mod
) )
//go:embed docs.html //go:embed docs.html