add godotenv, regenerate swagger docs
This commit is contained in:
+4
-4
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user