Methods
(inner) _renderWebform(req, res, next, options)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |
options |
object | Options passed to render |
(inner) edit(req, res, next)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |
(inner) offlineWebform(req, res, next)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |
(inner) preview(req, res, next)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |
(inner) redirect(req, res)
This serves a page that redirects old pre-2.0.0 urls into new urls. The reason this on the client-side is to cache the redirect itself which is important in case people have bookmarked an offline-capable old-style url and go into the field without Internet.
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
(inner) single(req, res, next)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |
(inner) view(req, res, next)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |
(inner) webform(req, res, next)
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |
(inner) xform(req, res, next)
Debugging view that shows underlying XForm
Parameters:
Name | Type | Description |
---|---|---|
req |
module:api-controller~ExpressRequest | HTTP request |
res |
module:api-controller~ExpressResponse | HTTP response |
next |
function | Express callback |