Extract internal router creation from server
This commit is contained in:
parent
05968eb232
commit
9daae9c705
8 changed files with 697 additions and 254 deletions
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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue