Créer tables sur démarrage de apiCmd

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-16 17:22:12 -04:00
parent a88809f91e
commit 682d8fc6aa
2 changed files with 14 additions and 0 deletions

View file

@ -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`