You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.
So the content of page.get.js would simply be the bare minimum:
response.end('Hello World')
The only problem is how request and response should be named since this is very opinionated.
Personally I prefer to not use abbreviations because we have autocomplete for a reason. So I'd go with the names I just mentioned.
Implementation
page.get.js should simply be compiled into a module that exports the get function. The get function is then assigned to the either existing or automatically created controller object.
The text was updated successfully, but these errors were encountered:
Example:
page.get.js
page.post.js
These files wouln't need to include the controller object & function boilerplate:
So the content of
page.get.js
would simply be the bare minimum:The only problem is how
request
andresponse
should be named since this is very opinionated.Personally I prefer to not use abbreviations because we have autocomplete for a reason. So I'd go with the names I just mentioned.
Implementation
page.get.js
should simply be compiled into a module that exports theget
function. Theget
function is then assigned to the either existing or automatically created controller object.The text was updated successfully, but these errors were encountered: