update endpoint for gateway

This commit is contained in:
Yanislav Igonin 2022-02-22 15:11:27 +02:00
parent 77706851c0
commit 52f9684f2a
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ func Connect() {
"id": Config.App.Gateway.BoardId, "id": Config.App.Gateway.BoardId,
"description": Config.App.Gateway.BoardDescription, "description": Config.App.Gateway.BoardDescription,
}) })
url := Config.App.Gateway.Url + "/boards" url := Config.App.Gateway.Url + "/api/boards"
req, err := http.NewRequest("POST", url, bytes.NewBuffer(requestBody)) req, err := http.NewRequest("POST", url, bytes.NewBuffer(requestBody))
if err != nil { if err != nil {
log.Panicln(err) log.Panicln(err)

View File

@ -69,7 +69,7 @@ func main() {
router.Static("/uploads", "./uploads") router.Static("/uploads", "./uploads")
router.Static("/static", "./static") router.Static("/static", "./static")
if Config.App.Gateway.Url != "" { if Config.App.Gateway.Url != "" {
router.GET("/ping", Gateway.Ping) router.GET("/api/ping", Gateway.Ping)
Gateway.Connect() Gateway.Connect()
} }
router.GET("/", Controllers.GetThreads) router.GET("/", Controllers.GetThreads)