handles

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArticle

func CreateArticle(w http.ResponseWriter, r *http.Request)

@Title Create Article @Description Create an Article @Param body body core.Article true "body for blog article" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router / [post]

func DeleteArticle

func DeleteArticle(w http.ResponseWriter, r *http.Request)

func GetArticles

func GetArticles(w http.ResponseWriter, r *http.Request)

func GetPublicArticles

func GetPublicArticles(w http.ResponseWriter, r *http.Request)

func SearchArticles

func SearchArticles(w http.ResponseWriter, r *http.Request)

@router /all/:pagesize [get]

func SearchPublicArticles

func SearchPublicArticles(w http.ResponseWriter, r *http.Request)

@router /:pagesize [get]

func SetupRoutes

func SetupRoutes(audience, issuer string) http.Handler

func UpdateArticle

func UpdateArticle(w http.ResponseWriter, r *http.Request)

@Title UpdateArticle @Description Updates a Website @Param body body core.Profile true "body for service content" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router / [put]

func ViewArticle

func ViewArticle(w http.ResponseWriter, r *http.Request)

/:key

func ViewPublicArticle

func ViewPublicArticle(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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