feat: add option to disable scalar

This commit is contained in:
Stavros
2026-07-04 18:00:10 +03:00
parent c10c33c664
commit 0c449321ff
4 changed files with 19 additions and 15 deletions
+5 -3
View File
@@ -89,10 +89,12 @@ func (app *BootstrapApp) setupRouter() error {
return fmt.Errorf("failed to provide api router group: %w", err)
}
err = app.setupScalar()
if app.config.Server.ScalarEnabled {
err = app.setupScalar()
if err != nil {
return fmt.Errorf("failed to setup scalar: %w", err)
if err != nil {
return fmt.Errorf("failed to setup scalar: %w", err)
}
}
controllerProvideFor := []any{