change routee

This commit is contained in:
guwandyk committed 2026-08-04 18:01:20 +05:00
1 parent 2dc0d1faa6
commit bd7bdf5867
16 files changed
+47 -41

No files matched your search

+3 -1
View File
@@ -8,6 +8,7 @@ import (
"bankline/pkg/client/postgresql"
"bankline/pkg/logging"
"context"
"fmt"
"github.com/gin-gonic/gin"
"github.com/jackc/pgx/v4/pgxpool"
swaggerFiles "github.com/swaggo/files"
@@ -27,7 +28,7 @@ import (
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:5050
// @BasePath /v1
// @BasePath /api/v1
// @securityDefinitions.apikey BearerAuth
// @in header
@@ -54,6 +55,7 @@ func main() {
func startPostgresql(cfg *config.Config, logger *logging.Logger) *pgxpool.Pool {
postgresSQLClient, err := postgresql.NewClient(context.TODO(), 3, cfg.Storage)
if err != nil {
fmt.Println("error", err)
return nil
}
return postgresSQLClient