wkeese/api-viewer — pull request #1 by kitsonk (2012-06-21 10:15:51+00:00)
Title: Relative Path Fix

When trying to get the permalinks to work, and enabling Apache to read the `.htaccess`, it exposed the fact that the code uses relative paths for `require()`. If you do this, the loader will not append `.js` and if the webserver does not map the URI to the `.js` extension, the application will not work. (Apache does this by default on a Mac, but when you properly enable `AllowOverride All` it reads the `.htaccess` files disables this and the viewer stops working).

The "api" code needs to be properly packaged (e.g. with a package.json and a api.profile.js), but for now, this pull maps it to a local package and removes the relative URIs.