Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClipController ¶
type ClipController struct {
// contains filtered or unexported fields
}
ClipController handles HTTP requests for clip operations.
func NewClipController ¶
func NewClipController(svc *service.ClipService) *ClipController
NewClipController creates a new ClipController.
func (*ClipController) Create ¶
func (c *ClipController) Create(ctx *gin.Context)
Create handles clip creation for both text (JSON) and image (multipart) types. POST /api/clips
func (*ClipController) Delete ¶
func (c *ClipController) Delete(ctx *gin.Context)
Delete removes a clip by ID. DELETE /api/clips/:id
func (*ClipController) GetFile ¶
func (c *ClipController) GetFile(ctx *gin.Context)
GetFile serves an image clip's file inline or as a download. GET /api/clips/:id/file[?download=1]
Click to show internal directories.
Click to hide internal directories.