调整UI
This commit is contained in:
+1
-42
@@ -147,24 +147,6 @@ func registerRoutes(r *gin.Engine) {
|
||||
r.GET("/search", web.Search)
|
||||
r.GET("/search/:q", web.Search)
|
||||
r.GET("/search/:q/page/:page", web.Search)
|
||||
r.GET("/profile", web.Profile)
|
||||
r.GET("/history", web.History)
|
||||
r.GET("/history/page/:page", web.History)
|
||||
r.POST("/api/playlet/history/clear", web.HistoryClear)
|
||||
r.POST("/api/playlet/history/delete", web.HistoryDelete)
|
||||
r.POST("/api/video/history/clear", web.VideoHistoryClear)
|
||||
r.POST("/api/video/history/delete", web.VideoHistoryDelete)
|
||||
r.GET("/favorites", web.Favorites)
|
||||
r.GET("/favorites/page/:page", web.Favorites)
|
||||
r.GET("/favorites/:filter", web.Favorites)
|
||||
r.GET("/favorites/:filter/page/:page", web.Favorites)
|
||||
r.GET("/purchased", web.PurchasedSeries)
|
||||
r.GET("/purchased/page/:page", web.PurchasedSeries)
|
||||
r.GET("/setting", web.Setting)
|
||||
r.GET("/settings", func(c *gin.Context) {
|
||||
c.Redirect(http.StatusMovedPermanently, "/setting")
|
||||
})
|
||||
r.GET("/recharge", web.Recharge)
|
||||
r.GET("/about", web.About)
|
||||
r.GET("/help", web.Help)
|
||||
r.GET("/terms", web.Terms)
|
||||
@@ -219,38 +201,15 @@ func registerRoutes(r *gin.Engine) {
|
||||
r.GET("/play/:slug/:ep/recommendations/page/:guessPage", web.Play)
|
||||
r.GET("/series-play/:slug", web.SeriesPlay)
|
||||
r.GET("/series-play/:slug/recommendations/page/:guessPage", web.SeriesPlay)
|
||||
r.GET("/login", web.LoginPage)
|
||||
r.GET("/register", web.RegisterPage)
|
||||
r.GET("/feedback", web.Feedback)
|
||||
|
||||
// 认证 BFF:SSR 进页已自动游客;前端登录/注册/补游客会话走以下接口。
|
||||
r.POST("/api/auth/guest", web.Guest)
|
||||
r.POST("/api/auth/login", web.Login)
|
||||
r.POST("/api/auth/register", web.Register)
|
||||
r.POST("/api/auth/logout", web.Logout)
|
||||
r.POST("/api/auth/profile", web.UpdateProfile)
|
||||
r.POST("/api/recharge/coin/buy", web.RechargeCoinBuy)
|
||||
r.POST("/api/coin/buy", web.RechargeCoinBuy)
|
||||
r.GET("/api/recharge/transactions", web.RechargeTransactions)
|
||||
r.GET("/api/coin/trans/list", web.RechargeTransactions)
|
||||
r.GET("/api/coin/trans/export", web.RechargeCoinTransExport)
|
||||
r.GET("/api/recharge/transactions/export", web.RechargeCoinTransExport)
|
||||
// 意见反馈(含截图上传)
|
||||
r.POST("/api/upload/image", web.UploadImage)
|
||||
r.POST("/api/feedback/add", web.FeedbackAdd)
|
||||
|
||||
// 播放页 BFF
|
||||
r.GET("/api/playlet/guess-like/list", web.GuessLikeList)
|
||||
r.GET("/api/comment/list", web.CommentList)
|
||||
r.POST("/api/comment/send", web.CommentSend)
|
||||
r.POST("/api/comment/like/set", web.CommentLikeSet)
|
||||
r.POST("/api/playlet/chapter/like/set", web.ChapterLikeSet)
|
||||
r.POST("/api/playlet/chapter/collect/set", web.ChapterCollectSet)
|
||||
r.POST("/api/playlet/chapter/watch/report", web.ChapterWatchReport)
|
||||
r.POST("/api/playlet/chapter/unlock", web.ChapterUnlock)
|
||||
r.POST("/api/playlet/like/set", web.PlayletLikeSet)
|
||||
r.POST("/api/playlet/collect/set", web.PlayletCollectSet)
|
||||
r.POST("/api/video/like/set", web.VideoLikeSet)
|
||||
r.POST("/api/video/collect/set", web.VideoCollectSet)
|
||||
r.GET("/api/web/search/suggest", web.SearchSuggest)
|
||||
|
||||
// 搜索引擎抓取、发现与站点所有权验证。
|
||||
|
||||
Reference in New Issue
Block a user