Skip to content

Commit

Permalink
feat(api/server): add RegistryHandler to server
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Jul 3, 2018
1 parent ec10ddd commit b675fdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ func NewServerRoutes(s *Server) *http.ServeMux {
hh.HistoryRequests.Node = s.qriNode
m.Handle("/history/", s.middleware(hh.LogHandler))

rgh := NewRegistryHandlers(s.qriNode.Repo)
m.Handle("/registry/", s.middleware(rgh.RegistryHandler))

rh := NewRootHandler(dsh, ph)
m.Handle("/", s.datasetRefMiddleware(s.middleware(rh.Handler)))

Expand Down

0 comments on commit b675fdd

Please sign in to comment.