@Summary Get entitlements @ID get-entitlements @Security CoderSessionToken @Produce json @Tags Enterprise @Success 200 {object} codersdk.Entitlements @Router /api/v2/entitlements [get]
(rw http.ResponseWriter, r *http.Request)
| 1296 | // @Success 200 {object} codersdk.Entitlements |
| 1297 | // @Router /api/v2/entitlements [get] |
| 1298 | func (api *API) serveEntitlements(rw http.ResponseWriter, r *http.Request) { |
| 1299 | ctx := r.Context() |
| 1300 | httpapi.Write(ctx, rw, http.StatusOK, api.Entitlements.AsJSON()) |
| 1301 | } |
| 1302 | |
| 1303 | func (api *API) runEntitlementsLoop(ctx context.Context) { |
| 1304 | eb := backoff.NewExponentialBackOff() |