You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David Copeland edited this page Oct 14, 2017
·
3 revisions
In general, you shouldn't need to configure stitches itself, but you can if you like.
When you ran the generator during Setup, an initializer should've been created in config/initializers/stitches.rb. This is where you can specify configuration.
Stitches.configuredo |configuration|
# configuration is an instance of Stitches::Configurationconfiguration.whitelist_regexp=# a regexp of all routes to allow in without an api keyconfiguration.custom_auth_scheme=# The String name for your auth schemeconfiguration.env_var_to_hold_api_client=# name of the var in request.env where the ApiClient instance for this request is held.end