1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2025-12-15 18:40:16 +00:00

♻️ Refactor code

🔥 Remove update detection
This commit is contained in:
2024-04-23 14:47:53 +08:00
parent ebc91d8aad
commit ac4ad3c8aa
16 changed files with 39 additions and 94 deletions

View File

@@ -6,7 +6,7 @@ import (
"log"
"net/http"
"sub2clash/api/handler"
"sub2clash/config"
"sub2clash/constant"
"sub2clash/middleware"
"github.com/gin-gonic/gin"
@@ -32,9 +32,9 @@ func SetRoute(r *gin.Engine) {
)
r.GET(
"/", func(c *gin.Context) {
version := config.Version
if len(config.Version) > 7 {
version = config.Version[:7]
version := constant.Version
if len(constant.Version) > 7 {
version = constant.Version[:7]
}
c.HTML(
200, "index.html", gin.H{