Créer tables sur démarrage de apiCmd
This commit is contained in:
parent
a88809f91e
commit
682d8fc6aa
2 changed files with 14 additions and 0 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"net/http"
|
||||
|
||||
"git.agecem.com/agecem/bottin-ag/apiresponse"
|
||||
"git.agecem.com/agecem/bottin-ag/dbclient"
|
||||
bottindata "git.agecem.com/agecem/bottin/v5/data"
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
@ -26,6 +27,7 @@ routes
|
|||
*/
|
||||
type APIHandler struct {
|
||||
BottinAPIClient *bottindata.ApiClient
|
||||
DBClient *dbclient.DBClient
|
||||
}
|
||||
|
||||
// HealthGET is the handler for `GET /v:version/health/ http/1.1`
|
||||
|
|
Reference in a new issue