working the dispense table and relative api route
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"git.phc.dm.unipi.it/phc/website/articles"
|
||||
"git.phc.dm.unipi.it/phc/website/auth"
|
||||
"git.phc.dm.unipi.it/phc/website/config"
|
||||
"git.phc.dm.unipi.it/phc/website/database"
|
||||
"git.phc.dm.unipi.it/phc/website/database/sqlite"
|
||||
"git.phc.dm.unipi.it/phc/website/handler"
|
||||
"git.phc.dm.unipi.it/phc/website/lista_utenti"
|
||||
"git.phc.dm.unipi.it/phc/website/server"
|
||||
@@ -22,7 +22,7 @@ func main() {
|
||||
auth := auth.NewDefaultService(config.AuthServiceHost)
|
||||
|
||||
// Create database connection and apply pending migrations
|
||||
db := util.Must(database.NewSqlite3Database("phc-server.local.db"))
|
||||
db := util.Must(sqlite.New("phc-server.local.db"))
|
||||
if err := db.Migrate("./database/migrations"); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -40,7 +40,7 @@ func main() {
|
||||
Path: "./_content/storia.yaml",
|
||||
},
|
||||
ListaUtenti: util.Must(lista_utenti.New(auth, config.ListaUtenti)),
|
||||
AppuntiService: &appunti.DefaultService{
|
||||
Appunti: &appunti.DefaultService{
|
||||
DB: db,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user