Better handling of react app

This commit is contained in:
2026-01-21 14:21:11 -05:00
parent 3c489b7c32
commit ce4f8ba7df
29 changed files with 810 additions and 1180 deletions

View File

@@ -40,11 +40,8 @@ CREATE TABLE IF NOT EXISTS members (
var db *sql.DB
func Connect() (*sql.DB, error) {
log.Printf("Connecting to database")
db_config := config.GetConfig()
log.Printf("Database path: %s", db_config.DBPath)
db, err := sql.Open("sqlite", db_config.DBPath)
if err != nil {
log.Printf("Error opening database: %v", err)