mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2026-01-09 09:54:21 +01:00
made http scheme in swagger documentation the default
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
"github.com/bbernhard/signal-cli-rest-api/api"
|
||||
"github.com/bbernhard/signal-cli-rest-api/client"
|
||||
_ "github.com/bbernhard/signal-cli-rest-api/docs"
|
||||
docs "github.com/bbernhard/signal-cli-rest-api/docs"
|
||||
"github.com/bbernhard/signal-cli-rest-api/utils"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/robfig/cron/v3"
|
||||
@@ -60,6 +60,8 @@ func main() {
|
||||
avatarTmpDir := flag.String("avatar-tmp-dir", "/tmp/", "Avatar tmp directory")
|
||||
flag.Parse()
|
||||
|
||||
docs.SwaggerInfo.Schemes = []string{"http", "https"}
|
||||
|
||||
router := gin.New()
|
||||
router.Use(gin.LoggerWithConfig(gin.LoggerConfig{
|
||||
SkipPaths: []string{"/v1/health"}, //do not log the health requests (to avoid spamming the log file)
|
||||
|
||||
Reference in New Issue
Block a user