Skip to content

Commit

Permalink
[Mediorum] [Discovery] Change /services protodash routes to /nodes (
Browse files Browse the repository at this point in the history
#7864)

Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
  • Loading branch information
nicoback2 and nicoback authored Mar 20, 2024
1 parent 8fb1fd9 commit 78add43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mediorum/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ func New(config MediorumConfig) (*MediorumServer, error) {
routes := echoServer.Group(apiBasePath)

routes.GET("", func(c echo.Context) error {
return c.Redirect(http.StatusFound, "/dashboard/#/services/content-node?endpoint="+config.Self.Host)
return c.Redirect(http.StatusFound, "/dashboard/#/nodes/content-node?endpoint="+config.Self.Host)
})
routes.GET("/", func(c echo.Context) error {
return c.Redirect(http.StatusFound, "/dashboard/#/services/content-node?endpoint="+config.Self.Host)
return c.Redirect(http.StatusFound, "/dashboard/#/nodes/content-node?endpoint="+config.Self.Host)
})

// public: uploads
Expand Down
2 changes: 1 addition & 1 deletion packages/discovery-provider/src/api/v1/root_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ def redirect_protocol_dashboard():
base_url = request.base_url
if base_url.endswith("/"):
base_url = base_url[:-1]
proto_dash = f"/dashboard/#/services/discovery-node?endpoint={base_url}"
proto_dash = f"/dashboard/#/nodes/discovery-node?endpoint={base_url}"
return redirect(proto_dash, code=302)

0 comments on commit 78add43

Please sign in to comment.