Add Service Banners (#5272)

This commit is contained in:
Ammar Bandukwala
2022-12-06 12:38:38 -06:00
committed by GitHub
parent df389d429c
commit 1cfe5de1c5
36 changed files with 959 additions and 4 deletions

View File

@ -127,6 +127,13 @@ func New(ctx context.Context, options *Options) (*API, error) {
r.Get("/", api.workspaceQuota)
})
})
r.Route("/service-banner", func(r chi.Router) {
r.Use(
apiKeyMiddleware,
)
r.Get("/", api.serviceBanner)
r.Put("/", api.putServiceBanner)
})
})
if len(options.SCIMAPIKey) != 0 {