Admin server for paths which are not part of API (#1011)

* admin server added

* test fixed, ping moved out of admin server

* keeping admin/web port in sync
This commit is contained in:
Tomas Knappek
2018-05-21 10:41:27 -07:00
committed by Shiva
parent 4623bf6a59
commit 8aae1502f0
2 changed files with 57 additions and 13 deletions

View File

@@ -15,13 +15,14 @@ import (
func testRouterAsync(ds models.Datastore, mq models.MessageQueue, rnr agent.Agent) *gin.Engine {
ctx := context.Background()
engine := gin.New()
s := &Server{
agent: rnr,
Router: gin.New(),
datastore: ds,
mq: mq,
nodeType: ServerTypeFull,
agent: rnr,
Router: engine,
AdminRouter: engine,
datastore: ds,
mq: mq,
nodeType: ServerTypeFull,
}
r := s.Router