mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-07 05:38:30 +02:00
Added restful-api plugin
- Added restful-api example plugin - Added more plugin docs - Added zoraxy_plugin HandleFunc API
This commit is contained in:
@@ -41,8 +41,8 @@ func main() {
|
||||
|
||||
func startWebServerInBackground() {
|
||||
go func() {
|
||||
server := &http.Server{Addr: ":8080", Handler: http.DefaultServeMux}
|
||||
http.DefaultServeMux = http.NewServeMux()
|
||||
server := &http.Server{Addr: ":8080", Handler: http.DefaultServeMux}
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.FileServer(http.Dir("./")).ServeHTTP(w, r)
|
||||
})
|
||||
|
Reference in New Issue
Block a user