Members
(inner, constant) defaultUserPermissions
Default permissions for users
Methods
(async, inner) authorize(permissions, req, res, sendResponse) → {Promise:.<boolean:>}
Checks if the user has the required permissions to access the endpoint
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
permissions |
Array:.<string:> | ||
req |
any | ||
res |
any | ||
sendResponse |
boolean | true | If true, send a response if the user is not authorized |
Returns:
(inner) createTerms(text) → {Array:.<string:>}
Create terms used in the database from text
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string |
Returns:
(inner) generateTempImagePath() → {string}
Generate a temporary image path
Returns:
path
- Type
- string
(inner) split(text, separators) → {Array:.<string:>}
Split a text using more than one separator
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | |
separators |
Array:.<string:> |