Source

wmexamples / priv / dispatch.conf

Diff from to

File priv/dispatch.conf

 {["_env", env],  %% exposed at /_env/VARIABLE_NAME
  env_resource,   %% defined in env_resource.erl
  []}.            %% no configuration
+
+
+%% Webmachine Trace Utility
+%% These are static dispatch lines to enable the trace utility
+%% every time this application is started.
+{["wmtrace",'*'],          %% exposed at /wmtrace/*
+ wmtrace_resource,         %% defined in wmtrace_resource.erl
+                           %%   (included with webmachine)
+ [{trace_dir, "traces"}]}. %% trace files are in "traces" directory
+
+%% sampletrace is meant for nothing other than generating a few sample
+%% trace files.  It expects a "code" query parameter, specifying which
+%% response code you'd like.
+%% Current supported codes are: 200 (default), 404, 301, and 500
+{["sampletrace"],         
+ sampletrace_resource,
+ []}.