mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 06:01:21 +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)
|
||
|
}
|