mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
23 lines
294 B
Go
23 lines
294 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/go-pg/pg/v10"
|
|
)
|
|
|
|
/*
|
|
Init
|
|
|
|
Initializes Web API Routes.
|
|
Args:
|
|
*gin.Engine: Gin Engine.
|
|
*pg.DB: Postgres Database Client.
|
|
*/
|
|
func Init(s *gin.Engine, db *pg.DB) {
|
|
Routes(s, db)
|
|
}
|
|
|
|
type API struct {
|
|
Api string `json:"api"`
|
|
}
|