mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2026-02-10 01:24:47 +01:00
Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api
This commit is contained in:
@@ -862,7 +862,7 @@ func (s *SignalClient) UpdateProfile(number string, profileName string, base64Av
|
||||
return err
|
||||
}
|
||||
|
||||
avatarTmpPath := s.avatarTmpDir + u.String() + "." + fType.Extension
|
||||
avatarTmpPath = s.avatarTmpDir + u.String() + "." + fType.Extension
|
||||
|
||||
f, err := os.Create(avatarTmpPath)
|
||||
if err != nil {
|
||||
|
||||
@@ -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