Shared helpers used by [[metabase.api.routes/routes]] as well as premium-only routes like [[metabase-enterprise.sandbox.api.routes/routes]]. | (ns metabase.api.routes.common (:require [metabase.server.core :as server])) |
these use vars rather than plain functions so changes to the underlying functions get propagated during REPL usage. | |
Wrap | (def +public-exceptions #'server/public-exceptions) |
Wrap | (def +message-only-exceptions #'server/message-only-exceptions) |
Wrap | (def +static-apikey #'server/enforce-static-api-key) |
Wrap | (def +auth #'server/enforce-authentication) |