1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

Fix web-app reference to web-api docs

This commit is contained in:
Lee Brown
2019-10-15 14:46:42 -08:00
parent 0bf7ca5387
commit 5dd7c02287
5 changed files with 44 additions and 6 deletions

View File

@ -25,6 +25,15 @@ ARG name
ARG code_path=./cmd/${name}
ARG commit_ref=-
ARG name
ENV SERVICE_NAME $name
ARG env="dev"
ENV ENV $env
ARG gogc="20"
ENV GOGC $gogc
# Copy shared packages.
COPY internal ./internal

View File

@ -56,7 +56,7 @@ func (h *Root) SitePage(ctx context.Context, w http.ResponseWriter, r *http.Requ
tmpName = "site-api.gohtml"
// http://127.0.0.1:3001/docs/doc.json
swaggerJsonUrl := h.ProjectRoute.ApiDocsJson()
swaggerJsonUrl := h.ProjectRoute.ApiDocsJson(true)
// Load the json file from the API service.
res, err := pester.Get(swaggerJsonUrl)