This commit is contained in:
Fran Jurmanović
2021-05-06 20:09:29 +02:00
parent 3a5138eb83
commit 20894ee42e
18 changed files with 197 additions and 28 deletions

15
pkg/api/routes.go Normal file
View File

@@ -0,0 +1,15 @@
package api
import (
"wallet-api/pkg/controllers"
"wallet-api/pkg/services"
"github.com/gin-gonic/gin"
"github.com/go-pg/pg/v10"
)
func Routes(s *gin.Engine, db *pg.DB) {
apiService := services.ApiService{Db: db}
apiController := controllers.ApiController{ApiService: &apiService}
apiController.Init(s)
}