mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00

- Replaced direct calls to routequery with a new routes package for better organization and maintainability. - Updated various components to utilize the new routes methods for fetching health information, homepage configurations, and route aliases. - Enhanced the overall structure of the routing logic to improve clarity and reduce redundancy.
13 lines
286 B
Go
13 lines
286 B
Go
package v1
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/yusing/go-proxy/internal/net/gphttp/gpwebsocket"
|
|
"github.com/yusing/go-proxy/internal/route/routes"
|
|
)
|
|
|
|
func Health(w http.ResponseWriter, r *http.Request) {
|
|
gpwebsocket.DynamicJSONHandler(w, r, routes.HealthMap, 1*time.Second)
|
|
}
|