chore: update .gitignore to include failed_requests and remove TODO file; refactor backup routes in server.go to comment out unused code

This commit is contained in:
Marco Pedone 2026-01-19 16:48:21 +01:00
parent 44c3869b23
commit 47be8bd54a
4 changed files with 43 additions and 44 deletions

View file

@ -1,6 +1,7 @@
tmp tmp
images images
videos videos
failed_requests
bkp.xml bkp.xml
.bin .bin
web.config web.config

View file

@ -1,4 +0,0 @@
Todo:
☐ https://medium.com/@felipedutratine/pass-environment-variables-from-docker-to-my-golang-2a967c5905fe
dsdsd

View file

@ -93,7 +93,7 @@ func Load() *Config {
}) })
if err := exec.Command("ffmpeg", "-version").Run(); err != nil { if err := exec.Command("ffmpeg", "-version").Run(); err != nil {
log.Errorf("FFmpeg not found: %w", err) log.Errorf("FFmpeg not found: %v", err)
Cfg.Videos.Enabled = false Cfg.Videos.Enabled = false
} }

View file

@ -199,6 +199,7 @@ func (s *Server) SetupRoutes() *echo.Echo {
}) })
// BACKUP ROUTES // BACKUP ROUTES
/*
e.GET("/upload-backup", func(c echo.Context) error { e.GET("/upload-backup", func(c echo.Context) error {
return c.Render(http.StatusOK, "backup-upload", nil) return c.Render(http.StatusOK, "backup-upload", nil)
}) })
@ -238,6 +239,7 @@ func (s *Server) SetupRoutes() *echo.Echo {
} }
return c.String(http.StatusOK, "Setted") return c.String(http.StatusOK, "Setted")
}) })
*/
//IMAGE ROUTES //IMAGE ROUTES
e.GET("/initcwebp", func(c echo.Context) error { e.GET("/initcwebp", func(c echo.Context) error {