mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
disable echo auth
This commit is contained in:
@@ -29,6 +29,8 @@ func Start(port string) {
|
||||
route := gin.New()
|
||||
route.Use(gin.Recovery(), cors.Default())
|
||||
|
||||
route.GET("/echo", echo)
|
||||
|
||||
routeAuth := auth.SetupAuth(route)
|
||||
if routeAuth != nil {
|
||||
api.SetupRoute(routeAuth)
|
||||
@@ -49,3 +51,7 @@ func Stop() {
|
||||
BTS.Disconnect()
|
||||
waitChan <- nil
|
||||
}
|
||||
|
||||
func echo(c *gin.Context) {
|
||||
c.String(200, "%v", version.Version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user