From f958f9c5805a164d37f071d50edd7ec9cc6ad507 Mon Sep 17 00:00:00 2001 From: Patrick Nagurny Date: Thu, 8 Nov 2018 12:35:15 -0500 Subject: [PATCH] don't use prefix for /ws --- core/api/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api/routes.go b/core/api/routes.go index 3c11164..362d184 100644 --- a/core/api/routes.go +++ b/core/api/routes.go @@ -33,7 +33,7 @@ func GetRouter(auth *AuthMiddleware, prefix string) (rest.App, error) { rest.Get(prefix + "/orgs/:orgId/prices", auth.RequireAuth(GetPrices)), rest.Post(prefix + "/orgs/:orgId/prices", auth.RequireAuth(PostPrice)), rest.Delete(prefix + "/orgs/:orgId/prices/:priceId", auth.RequireAuth(DeletePrice)), - rest.Get(prefix + "/ws", ws.Handler), + rest.Get("/ws", ws.Handler), rest.Post(prefix + "/sessions", auth.RequireAuth(PostSession)), rest.Delete(prefix + "/sessions/:sessionId", auth.RequireAuth(DeleteSession)), rest.Get(prefix + "keys", auth.RequireAuth(GetApiKeys)),