mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
add gen web
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user