Skip to content

Commit

Permalink
Update api/v1/api.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Sevey <mjsevey@gmail.com>
  • Loading branch information
mojtaba-esk and MSevey committed Dec 4, 2023
1 parent 0f20875 commit aafae6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (
"github.com/gorilla/mux"
"go.uber.org/zap"
)
const baseUrl = "/api/v1"

func path(endpoint string) string {
return fmt.Sprintf("/api/v1%s", endpoint)
return fmt.Sprintf("%s%s", baseUrl, endpoint)
}

func NewRESTApiV1(productionMode bool, logger *zap.Logger) *RESTApiV1 {
Expand Down

0 comments on commit aafae6c

Please sign in to comment.