Commits

Anonymous committed fcad7ae

This stuff about the 'demo' prefix that the example is assuming doesn't seem to be documented anywhere, I had to figure out on my own (and I'm a hopeless newb)

  • Participants
  • Parent commits 9c1b2a9

Comments (0)

Files changed (1)

ExampleResources.wiki

 
 With that function in the resource, all paths except {{{ /authdemo }}} from this resource's root are authorized. For that one path, the UA will be asked to do basic authorization with the user/pass of authdemo/demo1. It should go without saying that this isn't quite the same function that we use in our real apps, but it is nice and simple.
 
-To see that it works, you can point your browser at {{{ http://localhost:8000/demo/authdemo }}} with the demo app running:
+If you've generated the application from the [[QuickStart]], make sure you've added this line to your dispatch.conf file:
+
+{{{
+{["demo", '*'], mywebdemo_resource, []}.
+}}}
+
+Now you can point your browser at {{{ http://localhost:8000/demo/authdemo }}} with the demo app running:
 
 {{{
 $ curl -v http://localhost:8000/demo/authdemo