feat(api): fix POST /invoice

This commit is contained in:
2025-08-26 22:40:49 +02:00
parent 788571162d
commit 794558a007
12 changed files with 181 additions and 84 deletions

View File

@@ -5,11 +5,13 @@ import (
"log/slog"
"net/http"
"time"
"git.schreifuchs.ch/lou-taylor/accounting/internal/config"
)
func Start(log *slog.Logger, address string) error {
func Start(log *slog.Logger, address string, cfg *config.Config) error {
mux := http.NewServeMux()
RegisterRoutes(log, mux)
RegisterRoutes(log, mux, cfg)
s := &http.Server{
Addr: address,