forked from SW/traefik
Extract internal router creation from server
This commit is contained in:
committed by
Traefiker Bot
parent
05968eb232
commit
9daae9c705
10
types/internal_router.go
Normal file
10
types/internal_router.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"github.com/containous/mux"
|
||||
)
|
||||
|
||||
// InternalRouter router used by server to register internal routes (/api, /ping ...)
|
||||
type InternalRouter interface {
|
||||
AddRoutes(systemRouter *mux.Router)
|
||||
}
|
||||
Reference in New Issue
Block a user