add swagger support

- install swaggo
- add swagger config option
This commit is contained in:
André Roth committed 2024-10-01 01:07:09 +02:00
1 parent 96e60ae540
commit 1d1bd41bb8
11 files changed
+86 -7

No files matched your search

+2
View File
@@ -42,6 +42,7 @@ type ConfigStructure struct { // nolint: maligned
LogFormat string `json:"logFormat"`
ServeInAPIMode bool `json:"serveInAPIMode"`
DatabaseBackend DBConfig `json:"databaseBackend"`
EnableSwaggerEndpoint bool `json:"enableSwaggerEndpoint"`
}
// DBConfig
@@ -180,6 +181,7 @@ var Config = ConfigStructure{
LogLevel: "debug",
LogFormat: "default",
ServeInAPIMode: false,
EnableSwaggerEndpoint: false,
}
// LoadConfig loads configuration from json file