title: Build 2 middleware stacks in Rails app
body: <p>I have a Rails app provides both website and api.<br>
  I don't want some elements appear in API's middleware stack, for example : <code>ActionDispatch::Cookies</code>, <code>ActionDispatch::Session::CookieStore</code> or <code>ActionDispatch::Flash</code>.<br>
  Website's middleware stack is remain as normal.</p>
  
  <p>So how could I do that? Thanks.</p>