mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-07-04 20:02:34 +08:00
🔥 Remove test dir, verison length limit
This commit is contained in:
@ -18,7 +18,6 @@ var staticFiles embed.FS
|
||||
func SetRoute(r *gin.Engine) {
|
||||
r.Use(middleware.ZapLogger())
|
||||
|
||||
// 使用内嵌的模板文件
|
||||
tpl, err := template.ParseFS(staticFiles, "static/*")
|
||||
if err != nil {
|
||||
log.Fatalf("Error parsing templates: %v", err)
|
||||
@ -33,9 +32,6 @@ func SetRoute(r *gin.Engine) {
|
||||
r.GET(
|
||||
"/", func(c *gin.Context) {
|
||||
version := constant.Version
|
||||
if len(constant.Version) > 7 {
|
||||
version = constant.Version[:7]
|
||||
}
|
||||
c.HTML(
|
||||
200, "index.html", gin.H{
|
||||
"Version": version,
|
||||
|
Reference in New Issue
Block a user