Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN go mod download

COPY . .

RUN go run github.com/swaggo/swag/cmd/swag@latest init -g internal/api/server.go -o docs/
RUN go run github.com/swaggo/swag/cmd/swag@latest init -g internal/api/server.go -o docs/api/

RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o /fairqueue ./cmd/api

Expand Down
2 changes: 1 addition & 1 deletion cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"syscall"
"time"

_ "github.com/DanielPopoola/fairqueue/docs"
_ "github.com/DanielPopoola/fairqueue/docs/api"
"github.com/DanielPopoola/fairqueue/internal/api"
"github.com/DanielPopoola/fairqueue/internal/auth"
"github.com/DanielPopoola/fairqueue/internal/config"
Expand Down
4 changes: 2 additions & 2 deletions docs/docs.go → docs/api/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
// Package api Code generated by swaggo/swag. DO NOT EDIT
package api

import "github.com/swaggo/swag"

Expand Down
File renamed without changes.
File renamed without changes.
Loading