This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $view = new view; | |
| $view->name = 'terms'; | |
| $view->description = ''; | |
| $view->tag = 'default'; | |
| $view->base_table = 'node'; | |
| $view->human_name = 'Terms'; | |
| $view->core = 7; | |
| $view->api_version = '3.0'; | |
| $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.router.get('/:slug', function (slug) { | |
| Shortlink.find( {slug: slug} , function (err, shortlink) { | |
| if (err) { throw new(Error)(err) } | |
| console.log( this.req ); // This returns "undefined" and I think I understand why. | |
| // How do I access request and response objects from within | |
| // an anon callback like this one? | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "dezzme", | |
| "subdomain": "dezzme", | |
| "scripts": { | |
| "start": "index.js" | |
| }, | |
| "version": "0.0.0-5", | |
| "engines": { | |
| "node": "v0.6.x" | |
| }, |
NewerOlder