()
| 95 | } |
| 96 | |
| 97 | func (c *Core) initRouter() fasthttp.RequestHandler { |
| 98 | router := routing.New() |
| 99 | router.Get("/node/stats", utils.Wrapper(c.nod.GetStats)) |
| 100 | router.Get("/services/<service>/log", c.eng.GetServiceLog) |
| 101 | router.Get("/node/properties", utils.Wrapper(c.nod.GetNodeProperties)) |
| 102 | router.Put("/node/properties", utils.Wrapper(c.nod.UpdateNodeProperties)) |
| 103 | return router.HandleRequest |
| 104 | } |
| 105 | |
| 106 | func StartCoreService() { |
| 107 | context.Run(func(ctx context.Context) error { |