Hmmn, concatenating all the documents in one big response? Or a listing
like the / path does?


On Thu, Jan 16, 2014 at 1:47 PM, Mark W. Foster <notifications@github.com>wrote:

> In lib/crichton/middleware/resource_alps_response.rb:
>
> > +        @app = app
> > +        # in minutes
> > +        @expiry = (options['expiry'] || options[:expiry] || 10) * 60
> > +      end
> > +
> > +      ##
> > +      #
> > +      # standard call method for rack applications
> > +      #
> > +      # @param [Hash] env environmental variables for requests coming into the middleware
> > +      def call(env)
> > +        # unless an alps path request, delegate to app
> > +        if resource = alps_request(env['REQUEST_URI'])
> > +          process_alps_response(resource['id'], env)
> > +        elsif env['REQUEST_URI'] == config.alps_base_uri
> > +          # captures the "localhost:3000/alps" request
>
> So, per our previous discussion on 404 I was envisioning a bogus profile
> id. However, this causes me to ponder if calling the alps base should
> return a list of all the profiles? Thoughts?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mdsol/crichton/pull/104/files#r8948850>
> .
>



-- 
*@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ *

*                         "T h i s   t o o   s h a l l   p a s s"  *
*@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @* *@ @ @ @ @*