controllers

package
v0.0.0-...-b73fbf5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateForm

func CreateForm(c *gin.Context)

CreateForm takes a json object and persists a form into the DB

func CreateQuestion

func CreateQuestion(c *gin.Context)

CreateQuestion takes a json object and persists a form into the DB

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