routes

package
v0.0.0-...-63a4b18 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromContext

func ClientFromContext(c *gin.Context) (*lemmy.Client, error)

Types

type Frontpage

type Frontpage struct{}

func (*Frontpage) Attach

func (R *Frontpage) Attach(group *gin.RouterGroup) error

func (*Frontpage) GET

func (S *Frontpage) GET(c *gin.Context)

type Me

type Me struct{}

func (*Me) Attach

func (M *Me) Attach(group *gin.RouterGroup) error

func (*Me) GETMe

func (M *Me) GETMe(c *gin.Context)

type OAuth

type OAuth struct{}

func (*OAuth) Attach

func (O *OAuth) Attach(router *gin.Engine)

type Routes

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

func New

func New(l config.Lemmy) *Routes

func (*Routes) AuthMiddleware

func (R *Routes) AuthMiddleware() gin.HandlerFunc

func (*Routes) Mount

func (R *Routes) Mount(router *gin.Engine) error

type Subreddits

type Subreddits struct{}

func (*Subreddits) Attach

func (S *Subreddits) Attach(group *gin.RouterGroup) error

func (*Subreddits) GETHot

func (S *Subreddits) GETHot(c *gin.Context)

Jump to

Keyboard shortcuts

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