feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -40,6 +40,11 @@ func newAPIHandler(
|
||||
questionnaireHandler *v1.QuestionnaireHandler,
|
||||
catalogHandler *v1.CatalogHandler,
|
||||
organizationHandler *v1.OrganizationHandler,
|
||||
needHandler *v1.NeedHandler,
|
||||
supportHandler *v1.SupportHandler,
|
||||
assessmentHandler *v1.AssessmentHandler,
|
||||
assessmentSignalHandler *v1.AssessmentSignalHandler,
|
||||
privacyHandler *v1.PrivacyHandler,
|
||||
) *v1.Handler {
|
||||
return v1.NewHandler(health, problems,
|
||||
v1.WithIdentity(identityHandler),
|
||||
@@ -48,6 +53,11 @@ func newAPIHandler(
|
||||
v1.WithQuestionnaire(questionnaireHandler),
|
||||
v1.WithCatalog(catalogHandler),
|
||||
v1.WithOrganization(organizationHandler),
|
||||
v1.WithNeed(needHandler),
|
||||
v1.WithSupport(supportHandler),
|
||||
v1.WithAssessment(assessmentHandler),
|
||||
v1.WithAssessmentSignals(assessmentSignalHandler),
|
||||
v1.WithPrivacy(privacyHandler),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -157,7 +167,7 @@ func newIdentityHandler(
|
||||
// IDENTITY_ALLOW_EPHEMERAL_KEY, which the configuration check demands for an
|
||||
// unset secret, a random one is drawn for this process. Idempotency records and
|
||||
// counters no longer match after restart, and CSRF tokens differ between
|
||||
// restarts and instances.
|
||||
// restarts and instances. Candidate aliases also change with the secret.
|
||||
func newIdentityKeyring(settings config.Config, logger *slog.Logger) (*identity.Keyring, error) {
|
||||
if settings.DatabaseURL == "" {
|
||||
return nil, nil
|
||||
|
||||
Reference in new issue
Block a user