add godotenv, regenerate swagger docs

This commit is contained in:
zardzul
2026-03-13 22:23:42 +01:00
parent 82e1b51d38
commit 873cd6a57d
12 changed files with 71 additions and 48 deletions
+2 -2
View File
@@ -3,9 +3,9 @@
Music collection software for indexing bought (physical) albums. Build with Golang and Postgres
## Swagger
The API documentation is available at `/swagger/index.html` after running the application. It provides details about the available endpoints, request/response formats, and other relevant information for developers to interact with the API effectively.
The API documentation is available at [/api/v1/swagger/index.html](http://localhost:8080/api/v1/swagger/index.html) after running the application. It provides details about the available endpoints, request/response formats, and other relevant information for developers to interact with the API effectively.
Regenerate the docs with the following command in the /api/ folder:
```
$ go run github.com/swaggo/swag/cmd/swag@v1.16.4 init -g main.go -o docs
go run github.com/swaggo/swag/cmd/swag@v1.16.4 init -g main.go -o docs
```