mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-06 18:20:15 +00:00
feat: add option to disable scalar
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user