api

package
v0.0.0-...-e724b53 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(cfg *core.Config, site *core.Site, db *sqlx.DB)

SetupRoutes sets up the HTTP handlers.

Types

type AnonAPIfunc

type AnonAPIfunc func(http.ResponseWriter, *http.Request) error

AnonAPIfunc a http.HandlerFunc with an error code.

type LoginRequest

type LoginRequest struct {
	Username string
	Password string
}

LoginRequest is used for loggin in and getting the jwt auth token

type SetPasswordRequest

type SetPasswordRequest struct {
	Username    string
	OldPassword string
	NewPassword string
}

SetPasswordRequest is used for changing passwords.

Jump to

Keyboard shortcuts

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