Merge branch 'master' into LGT

This commit is contained in:
nikk gitanes
2021-07-18 01:13:11 +03:00
106 changed files with 15172 additions and 52101 deletions

View File

@@ -10,15 +10,11 @@ import (
)
func SetupRoute(route *gin.RouterGroup) {
route.GET("/", mainPage)
template.RouteWebPages(route)
route.GET("/stat", statPage)
route.GET("/magnets", getTorrents)
}
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)