Upstream sync

This commit is contained in:
Senad Uka
2023-09-27 08:04:50 +02:00
parent 7320fcb527
commit 937c61c635
15 changed files with 517 additions and 85 deletions

View File

@@ -1,4 +1,4 @@
package controllers
package controllers_test
import (
"bytes"
@@ -13,6 +13,8 @@ import (
"github.com/stretchr/testify/assert"
"gitlab.com/pactual1/backend/config"
"gitlab.com/pactual1/backend/controllers"
"gitlab.com/pactual1/backend/routes"
"gitlab.com/pactual1/backend/shared"
)
@@ -29,7 +31,8 @@ func runTestServer() *httptest.Server {
shared.Init()
r := gin.Default()
r.POST("/device_info", SaveDeviceInfo)
r.POST("/device_info", controllers.SaveDeviceInfo)
routes.RegisterPublicRoutes(r)
return httptest.NewServer(r)
}