http

package
v0.0.0-...-18986e1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(r *gin.Engine, authMiddleware *jwt.GinJWTMiddleware) *gin.RouterGroup

func CORS

func CORS() gin.HandlerFunc

func GetInstallation

func GetInstallation(c *gin.Context)

GetInstallation example @Summary Get to know if the system was installed before or not. @Description Get to know if the system was installed before or not. @ID web.getinstallation @Produce json @Success 200 {object} models.APIResponse @Router /api/install [get]

func JWTMiddleWare

func JWTMiddleWare() jwt.GinJWTMiddleware

func StartServer

func StartServer(name string, port string)

func UpdateInstallation

func UpdateInstallation(c *gin.Context)

UpdateInstallation example @Summary If not yet installed, initiate the user configuration. @Description If not yet installed, initiate the user configuration. @ID web.updateinstallation @Produce json @Success 200 {object} models.APIResponse @Router /api/install [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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