v1.2.0: back: first use of gorm for the database
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
ba64038d70
commit
8861c369cc
4 changed files with 52 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue