mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-21 06:26:10 +05:00
fix buffering cache
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"server/web/pages/template"
|
||||
)
|
||||
|
||||
func mainPage(c *gin.Context) {
|
||||
c.Data(200, "text/html; charset=utf-8", template.IndexHtml)
|
||||
}
|
||||
@@ -2,8 +2,20 @@ package pages
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"server/torr"
|
||||
"server/web/pages/template"
|
||||
)
|
||||
|
||||
func SetupRoute(route *gin.Engine) {
|
||||
route.GET("/", mainPage)
|
||||
route.GET("/stat", statPage)
|
||||
}
|
||||
|
||||
func mainPage(c *gin.Context) {
|
||||
c.Data(200, "text/html; charset=utf-8", template.IndexHtml)
|
||||
}
|
||||
|
||||
func statPage(c *gin.Context) {
|
||||
torr.WriteStatus(c.Writer)
|
||||
c.Status(200)
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user