Its 2:16 am in the morning and thanks to ExpressJS to keep me awake for such a long time. So what went wrong ? I happen to install ExpressJS version 3.X and boom! and most of my code breaks.. awesome. Like, the amount of espresso I had dint suffice so ExpressJs wanted to challenge me further. Thank you guys.... x-(
Backwards compatability is something I seek the most and thanks to you ExpressJS guys to spectaculary break that and the newer website design sucks! for love of god, its not a lingerie site. Please keep it as simple as possible. There are cogent reasons why simple text still rules (content ? duh ...) .
Anyways I application I wanted to build was just simple POST/GET handlers with a few things. But with basic support for route handling etc. So I again scouted for frameworks and finally found something simple to use (hapijs yay ..!) . But here is the problem . I need to keep digging through their github repo all the time to see the function calls and parameters they have choosen to implement them WTf!
Static file handling is something trivial and again for love of god guys please document it properly else it gets really hard to use it. This is the following code
Backwards compatability is something I seek the most and thanks to you ExpressJS guys to spectaculary break that and the newer website design sucks! for love of god, its not a lingerie site. Please keep it as simple as possible. There are cogent reasons why simple text still rules (content ? duh ...) .
Anyways I application I wanted to build was just simple POST/GET handlers with a few things. But with basic support for route handling etc. So I again scouted for frameworks and finally found something simple to use (hapijs yay ..!) . But here is the problem . I need to keep digging through their github repo all the time to see the function calls and parameters they have choosen to implement them WTf!
Static file handling is something trivial and again for love of god guys please document it properly else it gets really hard to use it. This is the following code
And thats how you use the handler json for directory and file. Seems trivial now ... :)