add http auth

This commit is contained in:
YouROK
2021-03-03 12:29:41 +03:00
parent 4b912c90ae
commit f108b7c718
5 changed files with 16 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ type requestI struct {
Action string `json:"action,omitempty"`
}
func SetupRoute(route *gin.Engine) {
func SetupRoute(route *gin.RouterGroup) {
route.GET("/echo", echo)
route.GET("/shutdown", shutdown)