From bca7c7f509b4a2594b0ebb0571d974bcf4128c97 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Tue, 18 May 2021 22:25:07 +0100 Subject: [PATCH] Fix URL (#110) * F * F Co-authored-by: Janos Dobronszki --- url/handler/url.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url/handler/url.go b/url/handler/url.go index 77e266e..2a45ee1 100644 --- a/url/handler/url.go +++ b/url/handler/url.go @@ -14,7 +14,7 @@ import ( url "github.com/micro/services/url/proto" ) -const hostPrefix = "https://m3o.one/u" +const hostPrefix = "https://m3o.one/u/" type Url struct { pairs model.Model @@ -85,7 +85,7 @@ func (e *Url) List(ctx context.Context, req *url.ListRequest, rsp *url.ListRespo return err } for _, v := range rsp.UrlPairs { - v.ShortURL = e.hostPrefix + "/" + v.ShortURL + v.ShortURL = e.hostPrefix + v.ShortURL } return nil }