controllers

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL