Feat: add swagger notes
This commit is contained in:
23
handlers/api/postImage.go
Normal file
23
handlers/api/postImage.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitea.konchin.com/go2025/backend/utils"
|
||||
"github.com/uptrace/bunrouter"
|
||||
)
|
||||
|
||||
// PostImage
|
||||
//
|
||||
// @param userinfo header string true "userinfo from /auth/gen-login-url"
|
||||
// @accept image/png
|
||||
// @accept image/jpeg
|
||||
// @accept image/gif
|
||||
// @success 200
|
||||
// @failure 401
|
||||
// @router /api/image [post]
|
||||
func (self *Handlers) PostImage(
|
||||
w http.ResponseWriter, req bunrouter.Request,
|
||||
) error {
|
||||
return utils.Success(w)
|
||||
}
|
||||
Reference in New Issue
Block a user