Skip to content

CAPI-34 Add an opportunity to pass custom middlewares to the server#3

Merged
galaxie merged 1 commit intoCAPI-23/ft/auth_context_handlingfrom
CAPI-34/ft/cors_support
Aug 11, 2016
Merged

CAPI-34 Add an opportunity to pass custom middlewares to the server#3
galaxie merged 1 commit intoCAPI-23/ft/auth_context_handlingfrom
CAPI-34/ft/cors_support

Conversation

@galaxie
Copy link
Copy Markdown

@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];
Copy link
Copy Markdown

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
Copy Markdown
Author

galaxie commented Aug 11, 2016

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

@keynslug
Copy link
Copy Markdown

: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.

2 participants