## from https://code.google.com/p/collective-intelligence-framework/wiki/ServerInstall
# Make sure you
#LoadModule apreq_module modules/mod_apreq2.so
#LoadModule perl_module modules/mod_perl2.so
# Load Apache2::REST
#PerlModule Apache2::REST

<Location /api>
    SetHandler perl-script
    PerlSetVar Apache2RESTHandlerRootClass "CIF::WebAPI::Plugin"
    PerlSetVar Apache2RESTAPIBase "/api"
    PerlResponseHandler Apache2::REST
    PerlSetVar Apache2RESTWriterDefault 'json'
    PerlSetVar Apache2RESTAppAuth 'CIF::WebAPI::AppAuth'

    # feed defaults
    PerlSetVar CIFLookupLimitDefault 500
    PerlSetVar CIFDefaultFeedSeverity "high"

    # extra outputs
    PerlAddVar Apache2RESTWriterRegistry 'table'
    PerlAddVar Apache2RESTWriterRegistry 'CIF::WebAPI::Writer::table'
</Location>

