router documentation

54 views
Skip to first unread message

Tristan Slominski

unread,
Dec 4, 2012, 4:00:28 PM12/4/12
to appj...@googlegroups.com
I can't find any documentation or example as to how I can intercept links.

For example, I'm interested in having a link like:

<a href="http://appjs/aws/s3/list-buckets">list buckets</a>

How do I run a custom Node.js function when someone clicks on that link?

Simon Horton

unread,
Dec 4, 2012, 4:21:08 PM12/4/12
to appj...@googlegroups.com

The following wiki page on github shows how to use express to handle local requests, maybe that will meet your needs:
https://github.com/appjs/appjs/wiki/Using-express-to-handle-local-http-requests

I have looked but the app.router appears to be undocumented at the moment we should document this from the source code and add it to the wiki. The source code is quite simple if you search for router.js in the node_modules directory, but we should document this functionality.

Simon

Reply all
Reply to author
Forward
0 new messages