chore: auto-commit (5 archivos)

- handlers.go
- handlers_test.go
- main.go
- datafactory_events.go
- handlers_datafactory.go

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Egutierrez
2026-05-16 16:33:25 +02:00
parent 8a71839520
commit 11c986edc7
5 changed files with 665 additions and 16 deletions
+9 -1
View File
@@ -11,6 +11,7 @@ import (
func main() {
bind := flag.String("bind", "127.0.0.1:8484", "address to bind")
dataFactoryDB := flag.String("data-factory-db", "", "path to data_factory.db (default: <root>/apps/data_factory/data_factory.db)")
flag.Parse()
root := findRegistryRoot()
@@ -24,7 +25,14 @@ func main() {
log.Printf("registered database: %s (%s)", entry.Alias, entry.Path)
}
srv := NewServer(pool, root)
dfPath := *dataFactoryDB
if dfPath == "" {
dfPath = filepath.Join(root, "apps", "data_factory", "data_factory.db")
}
dfMigrations := filepath.Join(root, "apps", "data_factory", "migrations")
log.Printf("data_factory db: %s (migrations: %s)", dfPath, dfMigrations)
srv := NewServer(pool, root, dfPath, dfMigrations)
mux := http.NewServeMux()
srv.Routes(mux)