mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-08-23 02:32:32 +00:00
16 lines
279 B
Go
16 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)
|
|
}
|