fix issue in cors

This commit is contained in:
John
2019-09-26 15:54:13 +08:00
parent cb7c3a9fa4
commit ef4e128af7
6 changed files with 10 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import "github.com/gogf/gf/frame/g"
func main() {
s := g.Server()
s.SetIndexFolder(true)
s.SetServerRoot("/Users/john/Temp")
s.SetServerRoot("/Users/john/Downloads")
s.AddSearchPath("/Users/john/Documents")
s.SetPort(8199)
s.Run()