mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user