feat(api): fix POST /invoice
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user