mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +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.
20 lines
258 B
Go
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
|
|
}
|