v1.2.0: back: first use of gorm for the database

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2024-03-30 11:07:41 +01:00
commit 8861c369cc
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
4 changed files with 52 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
echoSwagger "github.com/swaggo/echo-swagger"
logins "gitlab.g3e.fr/h6n/users/internal"
"gitlab.g3e.fr/h6n/users/lib"
"database/sql"
@ -91,6 +92,7 @@ func skip_log(c echo.Context) bool {
// @description Enter the token with the `Bearer: ` prefix, e.g. "Bearer abcde12345".
func main() {
init_database()
logins.Init_database()
if err := lib.InitLoginBiscuit(); err != nil {
fmt.Println("error : ", err)
return