项目名调整,功能优化

This commit is contained in:
2026-01-26 22:20:27 +08:00
parent c6e5e655f9
commit 50275265ac
25 changed files with 413 additions and 66 deletions

View File

@@ -1,9 +1,9 @@
package http
import (
_ "BingDailyImage/docs"
"BingDailyImage/internal/http/handlers"
"BingDailyImage/internal/http/middleware"
_ "BingPaper/docs"
"BingPaper/internal/http/handlers"
"BingPaper/internal/http/middleware"
"github.com/gin-gonic/gin"
swaggerFiles "github.com/swaggo/files"
@@ -50,6 +50,8 @@ func SetupRouter() *gin.Engine {
authorized.PATCH("/tokens/:id", handlers.UpdateToken)
authorized.DELETE("/tokens/:id", handlers.DeleteToken)
authorized.POST("/password", handlers.ChangePassword)
authorized.GET("/config", handlers.GetConfig)
authorized.PUT("/config", handlers.UpdateConfig)