The documentation has little information on this subject. If I copy application.serve declaration into my script, I get an error:
Cannot find function serve in object [object Application]
The script file is very simple:
<%
application.serve(function(request, respond, session) {});
%>
I found a presentation with an example on slide #23, but it says I have to require a router. When I do this I get another error.
How is "application.serve" to be used in a proper way?