This commit is contained in:
eson 2023-08-21 16:01:36 +08:00
parent ebbcc2050c
commit a23edd3e7b

View File

@ -41,6 +41,8 @@ func SetCors(w http.ResponseWriter, r *http.Request) {
var pathdict sync.Map = sync.Map{}
func main() {
log.SetFlags(log.Llongfile)
// 将静态资源路径存储到pathdict
pathdict.Store("/css", true)
pathdict.Store("/fonts", true)