Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
CORSMiddleware is a middleware function that enables us to interact with the React Frontend by setting the necessary headers
func TokenAuthMiddleware ¶
func TokenAuthMiddleware() gin.HandlerFunc
Authz is a middleware that validates token and authorizes users It takes a gin.Context as an argument and returns a gin.HandlerFunc This function is responsible for validating the token sent by the client in the Authorization header and authorizing the user if the token is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.