added
This commit is contained in:
parent
817e8edb28
commit
b2b9ef41cd
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user