Configuration for a method. Would be configured as { get: MethodConfig, post: MethodConfig, ... }
examples
Standard http response: { status: 200, body: { message: 'hello' }, }
Manual request listener method: async (req, res, vars) => res.sendJson({ url: req.url, date: Date.now() }, { status: 201 });
Static file: '/static/:file'
Configuration for a method. Would be configured as { get: MethodConfig, post: MethodConfig, ... }
examples
Standard http response: { status: 200, body: { message: 'hello' }, }
Manual request listener method: async (req, res, vars) => res.sendJson({ url: req.url, date: Date.now() }, { status: 201 });
Static file: '/static/:file'