customemojis

package
v0.17.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BasePath is the base path for serving custom emojis, minus the 'api' prefix
	BasePath = "/v1/custom_emojis"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(processor *processing.Processor) *Module

func (*Module) CustomEmojisGETHandler

func (m *Module) CustomEmojisGETHandler(c *gin.Context)

CustomEmojisGETHandler swagger:operation GET /api/v1/custom_emojis customEmojisGet

Get an array of custom emojis available on the instance.

---
tags:
- custom_emojis

produces:
- application/json

security:
- OAuth2 Bearer:
	- read:custom_emojis

responses:
	'200':
		description: Array of custom emojis.
		schema:
			type: array
			items:
				"$ref": "#/definitions/emoji"
	'401':
		description: unauthorized
	'406':
		description: not acceptable
	'500':
		description: internal server error

func (*Module) Route

func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes)

Jump to

Keyboard shortcuts

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