mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-25 14:34:22 +00:00
fixed swagger.json url
* the url to the swagger.json uses now the correct ip address. see #225
This commit is contained in:
parent
f411b558a8
commit
bede4bc022
@ -1523,7 +1523,7 @@ type swaggerInfo struct {
|
|||||||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||||||
var SwaggerInfo = swaggerInfo{
|
var SwaggerInfo = swaggerInfo{
|
||||||
Version: "1.0",
|
Version: "1.0",
|
||||||
Host: "127.0.0.1:8080",
|
Host: "",
|
||||||
BasePath: "/",
|
BasePath: "/",
|
||||||
Schemes: []string{},
|
Schemes: []string{},
|
||||||
Title: "Signal Cli REST API",
|
Title: "Signal Cli REST API",
|
||||||
|
|||||||
@ -7,7 +7,6 @@
|
|||||||
"license": {},
|
"license": {},
|
||||||
"version": "1.0"
|
"version": "1.0"
|
||||||
},
|
},
|
||||||
"host": "127.0.0.1:8080",
|
|
||||||
"basePath": "/",
|
"basePath": "/",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/v1/about": {
|
"/v1/about": {
|
||||||
|
|||||||
@ -193,7 +193,6 @@ definitions:
|
|||||||
status:
|
status:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
host: 127.0.0.1:8080
|
|
||||||
info:
|
info:
|
||||||
contact: {}
|
contact: {}
|
||||||
description: This is the Signal Cli REST API documentation.
|
description: This is the Signal Cli REST API documentation.
|
||||||
|
|||||||
@ -52,7 +52,6 @@ import (
|
|||||||
// @tag.name Search
|
// @tag.name Search
|
||||||
// @tag.description Search the Signal Service.
|
// @tag.description Search the Signal Service.
|
||||||
|
|
||||||
// @host 127.0.0.1:8080
|
|
||||||
// @BasePath /
|
// @BasePath /
|
||||||
func main() {
|
func main() {
|
||||||
signalCliConfig := flag.String("signal-cli-config", "/home/.local/share/signal-cli/", "Config directory where signal-cli config is stored")
|
signalCliConfig := flag.String("signal-cli-config", "/home/.local/share/signal-cli/", "Config directory where signal-cli config is stored")
|
||||||
@ -238,7 +237,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
swaggerUrl := ginSwagger.URL("http://127.0.0.1:" + string(port) + "/swagger/doc.json")
|
swaggerUrl := ginSwagger.URL("http://" + swaggerIp + ":" + string(port) + "/swagger/doc.json")
|
||||||
router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, swaggerUrl))
|
router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, swaggerUrl))
|
||||||
|
|
||||||
autoReceiveSchedule := utils.GetEnv("AUTO_RECEIVE_SCHEDULE", "")
|
autoReceiveSchedule := utils.GetEnv("AUTO_RECEIVE_SCHEDULE", "")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user