feat(api): add OpenAPI documentation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user