Swagger docs
This commit is contained in:
@ -6,6 +6,14 @@ import (
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
// PostCopy godoc
|
||||
// @Summary Get copy icon SVG
|
||||
// @Description Returns an SVG of a copy icon
|
||||
// @Tags post
|
||||
// @Accept json
|
||||
// @Produce html
|
||||
// @Success 200 {string} string "SVG content"
|
||||
// @Router /post/copy [get]
|
||||
func PostCopy(c echo.Context) error {
|
||||
return c.String(http.StatusOK, `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user