This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
io /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Nov 27 07:22:19 -0800 2009 | |
| |
LICENSE | Sat Oct 10 23:28:21 -0700 2009 | |
| |
README | Sun Oct 11 00:57:31 -0700 2009 | |
| |
lists/ | Fri Oct 23 07:23:36 -0700 2009 | |
| |
shows/ | Fri Oct 23 07:08:13 -0700 2009 | |
| |
templates/ | Thu Nov 05 03:35:59 -0800 2009 | |
| |
updates/ | Fri Oct 23 07:08:13 -0700 2009 | |
| |
validate_doc_update.js | Mon Oct 12 16:22:53 -0700 2009 | |
| |
vendor/ | Fri Oct 23 07:08:13 -0700 2009 | |
| |
views/ | Fri Oct 23 07:08:13 -0700 2009 |
README
The cool stuff happens in updates/shorten.js and shows/long.js Create a short: curl -X POST http://127.0.0.1:5984/io/_design/io/_update/shorten?target=http://zombo.com/ You should see: Shortened to yvHa Get the redirect: http://127.0.0.1:5984/io/_design/io/_show/long/yvHa For maximum effect, deploy behind an HTTP proxy that aliases / to http://127.0.0.1:5984/io/_design/io/_show/long/ -- Go to http://127.0.0.1:5984/io/_design/io/_list/index/shorts to see a list of all shortened URLs. The list & view that power this make this > 30 LoC, but the updates/shorten.js and shows/long.js are still tight.







