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.
Click to show internal directories.
Click to hide internal directories.