add godotenv, regenerate swagger docs
This commit is contained in:
+7
-1
@@ -8,14 +8,20 @@ import (
|
||||
"zardzul/music-index/routes"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
// @title Music Index API
|
||||
// @version 1.0
|
||||
// @description API for managing users and artists in Music Index.
|
||||
// @BasePath /
|
||||
// @BasePath /api/v1/
|
||||
|
||||
func main() {
|
||||
err := godotenv.Load(".env")
|
||||
if err != nil {
|
||||
panic("Error loading .env file")
|
||||
}
|
||||
|
||||
pool, queries, databaseError := database.Connect()
|
||||
if databaseError != nil {
|
||||
panic(databaseError)
|
||||
|
||||
Reference in New Issue
Block a user