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
+4 -4
View File
@@ -15,7 +15,7 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/artist/getAll": {
"/artists": {
"get": {
"produces": [
"application/json"
@@ -44,7 +44,7 @@ const docTemplate = `{
}
}
},
"/user/create": {
"/users/create": {
"post": {
"consumes": [
"application/json"
@@ -89,7 +89,7 @@ const docTemplate = `{
}
}
},
"/user/getUserNameByID/{id}": {
"/users/{id}": {
"get": {
"produces": [
"application/json"
@@ -185,7 +185,7 @@ const docTemplate = `{
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "",
BasePath: "/",
BasePath: "/api/v1/",
Schemes: []string{},
Title: "Music Index API",
Description: "API for managing users and artists in Music Index.",