chore: use the echo framework instead of plain go net/http

This commit is contained in:
2025-06-02 17:35:07 +01:00
parent 4e6d939fd5
commit 9bd04f843a
8 changed files with 199 additions and 71 deletions
+4 -4
View File
@@ -7,16 +7,16 @@ import (
"gorm.io/gorm"
)
type DBWrapper struct {
db *gorm.DB
type DB struct {
instance *gorm.DB
}
func (wrapper *DBWrapper) Connect() {
func (wrapper *DB) Connect() {
db, err := gorm.Open(sqlite.Open("crimson_vault.db"), &gorm.Config{})
if err != nil {
log.Fatal(err)
}
wrapper.db = db
wrapper.instance = db
}