GoDoxy/internal/homepage/route.go
yusing 1fe21b84eb refactor: unify route handling by consolidating route query methods with Pool
- 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.
2025-04-17 14:44:12 +08:00

20 lines
258 B
Go

package homepage
import (
"net/http"
"net/url"
"github.com/yusing/go-proxy/internal/utils/pool"
)
type route interface {
pool.Object
ProviderName() string
Reference() string
TargetURL() *url.URL
}
type httpRoute interface {
route
http.Handler
}