mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +08:00
17 lines
279 B
Go
17 lines
279 B
Go
package route
|
|
|
|
import (
|
|
"github.com/go-chi/chi/v5"
|
|
"net/http"
|
|
)
|
|
|
|
func scriptRouter() http.Handler {
|
|
r := chi.NewRouter()
|
|
r.Get("/", getScript)
|
|
return r
|
|
}
|
|
|
|
func getScript(writer http.ResponseWriter, request *http.Request) {
|
|
writer.WriteHeader(http.StatusMethodNotAllowed)
|
|
}
|