feat(api): add OpenAPI documentation

This commit is contained in:
2026-09-21 17:48:27 +03:30
parent 6e0b718811
commit 5175d1dd65
5 changed files with 540 additions and 2 deletions

View File

@@ -91,6 +91,7 @@ func run(logger *slog.Logger) error {
mux := http.NewServeMux()
mux.HandleFunc("/health", healthHandler)
mux.HandleFunc("/api/v1/card-to-iban", handler.Convert)
httpapi.RegisterDocumentation(mux)
server := &http.Server{
Addr: config.ServerAddr,