test

package
v0.0.0-...-412dc8c Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminHandler

func AdminHandler(req interfaces.RequestContext) *views.Response

AdminHandler godoc @Summary Test admin privileges. @Tags test @Description Tests whether a user is logged-in and an admin. @Produce json @Success 200 {object} views.Response @Failure 403 {object} views.Response @Security JWT @Router /test/is-admin [get]

func ConfigureRoutes

func ConfigureRoutes(app interfaces.App, r *mux.Router)

func UserHandler

func UserHandler(req interfaces.RequestContext) *views.Response

UserHandler godoc @Summary Test user privileges. @Tags test @Description Tests whether a user is logged-in. @Produce json @Success 200 {object} views.Response @Failure 403 {object} views.Response @Security JWT @Router /test/is-user [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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