예제 #1
0
파일: topology.go 프로젝트: lebauce/skydive
func (t *TopologyApi) registerEndpoints(r *shttp.Server) {
	routes := []shttp.Route{
		{
			"TopologiesIndex",
			"GET",
			"/api/topology",
			t.topologyIndex,
		},
	}

	r.RegisterRoutes(routes)
}
예제 #2
0
파일: flow.go 프로젝트: fdebonneval/skydive
func (f *FlowApi) registerEndpoints(r *shttp.Server) {
	routes := []shttp.Route{
		{
			"FlowSearch",
			"GET",
			"/api/flow/search",
			f.flowSearch,
		},
		{
			"ConversationLayer",
			"GET",
			"/api/flow/conversation/{layer}",
			f.conversationLayer,
		},
		{
			"Discovery",
			"GET",
			"/api/flow/discovery/{type}",
			f.discoveryType,
		},
	}

	r.RegisterRoutes(routes)
}