Trial Controller module
This module provides functionality for saving trial files to disk.
Members
(private, inner) trialFileDirectory :string
The directory on disk, relative to the root of the installation, where trial JSON files will be saved.
Type:
- string
Methods
(static) create(req, res) → {undefined}
Creates a new trial file. This method requires that the body of the
request be a JSON object with the metadata.session_number set. The
trial is then saved to trialFileDirectory
with the name <SESSIONNUMBER>.trial.json.
Parameters:
| Name | Type | Description |
|---|---|---|
req |
http.ClientRequest | The client request |
res |
http.ServerResponse | The server response |
Returns:
- Type
- undefined