From e6ca5db8eaae6252c545f108e9c205d69515b06b Mon Sep 17 00:00:00 2001 From: Or Elimelech Date: Tue, 22 Oct 2024 11:57:46 +0300 Subject: [PATCH] chore: missing / in fmt --- route/route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/route.go b/route/route.go index ddcd2da..8d5336b 100644 --- a/route/route.go +++ b/route/route.go @@ -64,7 +64,7 @@ func Generate(ctx context.Context, mod Module, w io.Writer) error { for _, method := range service.GetMethod() { rt := Rule{ Name: method.GetName(), - PathRegex: fmt.Sprintf("%s/%s", packageAndService, method.GetName()), + PathRegex: fmt.Sprintf("/%s/%s", packageAndService, method.GetName()), } methodOpts := method.GetOptions()