Feat: add swagger notes
This commit is contained in:
23
handlers/api/deleteImage.go
Normal file
23
handlers/api/deleteImage.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitea.konchin.com/go2025/backend/utils"
|
||||
"github.com/uptrace/bunrouter"
|
||||
)
|
||||
|
||||
// DeleteImage
|
||||
//
|
||||
// @summary Delete image
|
||||
// @description delete image along with the links
|
||||
// @param id path int64 true "Image Id"
|
||||
// @success 200
|
||||
// @failure 401
|
||||
// @failure 404
|
||||
// @router /api/image/{id} [delete]
|
||||
func (self *Handlers) DeleteImage(
|
||||
w http.ResponseWriter, req bunrouter.Request,
|
||||
) error {
|
||||
return utils.Success(w)
|
||||
}
|
||||
Reference in New Issue
Block a user