This commit is contained in:
huyunfan 2024-12-17 12:20:13 +08:00
parent 817e8edb28
commit b2b9ef41cd

View File

@ -8,6 +8,7 @@ import (
"io/ioutil"
"net/http"
"os"
"proxyrules/src/service"
"strings"
)
@ -226,6 +227,7 @@ func loadCredentials(filePath string) (map[string]string, error) {
}
func main() {
service.GenerateConfig()
r := gin.Default()
r.Static("/static", "./static") // 将 static 目录映射到 /static 路径
r.SetHTMLTemplate(template.Must(template.New("index").Parse(htmlTemplate)))