handlers

package
v0.0.0-...-7dc802a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c middleware.AuthedContext) error

CreateUser create a user

func DestroyUser

func DestroyUser(c middleware.AuthedContext) error

DestroyUser admin delete user by id

func GetSession

func GetSession(c middleware.AuthedContext) error

GetSession admin session data endpoint

func GetUser

func GetUser(c middleware.AuthedContext) error

GetUser admin fetch user by id

func ListUsers

func ListUsers(c middleware.AuthedContext) error

ListUsers admin list of users

func Login

func Login(c web.ApiContext) error

Login admin login route handler, expects email and password

func Logout

func Logout(c middleware.AuthedContext) error

Logout admin logout endpoint

func UpdateUser

func UpdateUser(c middleware.AuthedContext) error

UpdateUser admin update user

Types

This section is empty.

Jump to

Keyboard shortcuts

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