controllers

package
v0.0.0-...-0e580d0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFact

func GetFact(c *gin.Context)

func Login

func Login(c *gin.Context)

Login takes customer email and password a json params and returns a token or an error depending on the credentials given.

func Register

func Register(c *gin.Context)

Register takes a json object with password as parameter, hash password and persists a user into the DB

func SayHello

func SayHello(c *gin.Context)

SayHello simply returns a json with hello world text to check if the API is available

Types

This section is empty.

Jump to

Keyboard shortcuts

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