feat: download tmdb img & change name_cn

This commit is contained in:
Simon Ding
2024-07-14 11:59:06 +08:00
parent 294ab45218
commit 32787c5ed3
21 changed files with 197 additions and 192 deletions

View File

@@ -1,6 +1,7 @@
package server
import (
"net/http"
"polaris/db"
"polaris/log"
"polaris/pkg/tmdb"
@@ -42,6 +43,7 @@ func (s *Server) Serve() error {
api := s.r.Group("/api/v1")
api.Use(s.authModdleware)
api.StaticFS("/img", http.Dir(db.ImgPath))
setting := api.Group("/setting")
{