mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
wip: client api with net/http poc
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package api
|
||||
|
||||
import "github.com/hazemKrimi/crimson-vault/internal/models"
|
||||
|
||||
type APIWrapper struct {
|
||||
dbWrapper *models.DBWrapper
|
||||
}
|
||||
|
||||
func (api *APIWrapper) Initialize() {
|
||||
wrapper := models.DBWrapper{}
|
||||
|
||||
wrapper.Connect()
|
||||
wrapper.MigrateClients()
|
||||
|
||||
api.dbWrapper = &wrapper;
|
||||
}
|
||||
Reference in New Issue
Block a user