riak / src / riak_web.erl

Diff from to

src/riak_web.erl

 %%</dd><dt> jiak_name
 %%</dt><dd>   the base path under which Jiak should be exposed;
 %%            defaulted to "jiak"
+%%</dd><dt> raw_name
+%%</dt><dd>   the base path under which the raw_http_resource
+%%            should be exposed; defaulted to "raw"
 %%</dd></dl>
 -module(riak_web).
 
 
 dispatch_table() ->
     JiakProps = jiak_props(),
+    RawProps = raw_props(),
     [{[proplists:get_value(jiak_name, JiakProps),bucket],
       jiak_resource,
       [{key_type, container}|JiakProps]},
       jiak_resource,
       [{key_type, item}|JiakProps]},
      {[proplists:get_value(jiak_name, JiakProps),bucket,key,'*'],
-      jaywalker_resource,JiakProps}].
+      jaywalker_resource,JiakProps},
+
+     {[proplists:get_value(prefix, RawProps),bucket],
+      raw_http_resource,RawProps},
+     {[proplists:get_value(prefix, RawProps),bucket,key],
+      raw_http_resource, RawProps},
+     {[proplists:get_value(prefix, RawProps),bucket,key,'*'],
+      raw_link_walker_resource, RawProps}].
 
 jiak_props() ->
     [{jiak_name, riak:get_app_env(jiak_name, "jiak")},
      {riak_local, true},
      {jiak_buckets, [jiak_example]}].
 
+raw_props() ->
+    [{prefix, riak:get_app_env(raw_name, "raw")},
+     {riak, local}].
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.