routes

package
v0.0.0-...-ee036f0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(router *gin.Engine)

@Summary เข้าสู่ระบบ @Description เข้าสู่ระบบ @Tags เข้าสู่ระบบ @Accept json @Produce json @Param user body models.SwagLoginRequest true "ลงชื่อเข้าสู่ระบบ" @Success 200 {object} models.SwagLoginResponse @Failure 400 {object} models.SwagErrorResponse @Failure 404 {object} models.SwagErrorResponse @Failure 500 {object} models.SwagErrorResponse @Router /login [post]

func AuthMiddlewareJWT

func AuthMiddlewareJWT() *jwt.GinJWTMiddleware

Types

type User

type User = models.User

User struct alias

Jump to

Keyboard shortcuts

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