Server
Constructor Summary
| Public Constructor | ||
| public |
constructor(reptar: *) |
|
Member Summary
| Public Members | ||
| public |
reptar: * |
|
| public |
routeHandler(request: Object, reply: Object): Promise: * Our default route handler for every request. |
|
| public |
server: * |
|
Method Summary
| Public Methods | ||
| public |
Create file system watchers to update Reptar state according to when a user updates files. |
|
| public |
getFile(requestPath: string): File | CollectionPage Get File/CollectionPage based on request.path. |
|
| public |
Starts the Hapi server. |
|
Public Constructors
public constructor(reptar: *) source
Params:
| Name | Type | Attribute | Description |
| reptar | * |
Public Members
public reptar: * source
public routeHandler(request: Object, reply: Object): Promise: * source
Our default route handler for every request.
public server: * source
Public Methods
public createFsWatchers() source
Create file system watchers to update Reptar state according to when a user updates files.
public getFile(requestPath: string): File | CollectionPage source
Get File/CollectionPage based on request.path.
Params:
| Name | Type | Attribute | Description |
| requestPath | string | Request path to server. |