mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
14 lines
429 B
Go
14 lines
429 B
Go
package v1
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
config "github.com/yusing/go-proxy/internal/config/types"
|
|
"github.com/yusing/go-proxy/internal/net/gphttp"
|
|
"github.com/yusing/go-proxy/internal/route/routes"
|
|
route "github.com/yusing/go-proxy/internal/route/types"
|
|
)
|
|
|
|
func ListRoutesHandler(cfg config.ConfigInstance, w http.ResponseWriter, r *http.Request) {
|
|
gphttp.RespondJSON(w, r, routes.ByAlias(route.RouteType(r.FormValue("type"))))
|
|
}
|