Skip to content

Conversation

@galaxie
Copy link

@galaxie galaxie commented Aug 11, 2016

Для возможности подпихнуть произвольные middleware, сервер принимает дополнительные параметры

fun
({env, Env}, Acc) ->
NewEnv = case proplists:get_value(dispatch, Env) of
undefined -> [get_default_dispatch(LogicHandler) | Env];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Многовато уровней вложенности, читается тяжело.

@galaxie galaxie force-pushed the CAPI-34/ft/cors_support branch from 5d7e8df to 7c2445a Compare August 11, 2016 15:39
@galaxie
Copy link
Author

galaxie commented Aug 11, 2016

@keynslug Перепилил. Fine!

@keynslug
Copy link

:shipit:

@galaxie galaxie force-pushed the CAPI-23/ft/auth_context_handling branch from 45589d3 to b51d8bb Compare August 11, 2016 15:53
@galaxie galaxie merged commit 822c805 into CAPI-23/ft/auth_context_handling Aug 11, 2016
@arentrue arentrue deleted the CAPI-34/ft/cors_support branch May 24, 2017 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants