Skip to content

Commit

Permalink
Fix the path problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu authored and John-Lin committed Aug 22, 2018
1 parent c8fea4b commit bf63f88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/server/route.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package server

import (
"net/http"

"github.com/emicklei/go-restful"
"github.com/gorilla/mux"
handler "github.com/linkernetworks/vortex/src/net/http"
Expand All @@ -16,7 +14,6 @@ func (a *App) AppRoute() *mux.Router {
container := restful.NewContainer()

container.Filter(globalLogging)
http.Handle("/api/sockjs/", CreateAttachHandler("/api/sockjs"))

container.Add(newVersionService(a.ServiceProvider))
container.Add(newRegistryService(a.ServiceProvider))
Expand All @@ -33,7 +30,9 @@ func (a *App) AppRoute() *mux.Router {
container.Add(newAppService(a.ServiceProvider))
container.Add(newShellService(a.ServiceProvider))

router.PathPrefix("/api/sockjs").Handler(CreateAttachHandler("/api/sockjs"))
router.PathPrefix("/v1/").Handler(container)

return router
}

Expand Down

0 comments on commit bf63f88

Please sign in to comment.