Global

Methods

get_edit_page(req, res) → {function}

make sure a user is authenticated, if not logged in, send them to login page and return them to original resource after login

Parameters:
Name Type Description
req object
res object
Source:
Returns:

next() callback

Type
function

get_index_page(req, res) → {object}

shows list of users page

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

get_new_page(req, res) → {object}

create a new user page

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

get_show_page(req, res) → {object}

shows user profile page

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

getHomepageStats(req, res) → {object}

does a query to get content counts for all content types

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

getMarkdownReleases(req, res) → {object}

load the markdown release data

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

index(req, res) → {object}

manage user role section

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or requested view

Type
object

load_app_settings(req, res, next) → {object}

load app configuration information

Parameters:
Name Type Description
req object
res object
next object

async callback

Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

load_extension_settings(req, res, next)

load the extensions configuration files from the installed config folder in content/config/extensions/[extension]/[config files]

Parameters:
Name Type Description
req object
res object
next function
Source:

load_theme_settings(req, res, next) → {object}

load theme configuration information

Parameters:
Name Type Description
req object
res object
next object

async callback

Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

restart_app(req, res) → {object}

restarts application response handler and send notification email

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

sendSettingEmail(options, callbackk)

send setting update email

Parameters:
Name Type Description
options object

contains email options and nodemailer transport

callbackk function

async callback

Source:

settings_faq(req, res) → {object}

settings faq page

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

settings_index(req, res) → {object}

application settings and theme settings page

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

show(req, res) → {object}

show user role

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or requested view

Type
object

styleWindowResizeEventHandler()

resize codemirror on window resize

Source:

update_app(req, res) → {object}

placeholder response for updating application

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

update_app_settings(req, res, next) → {object}

form upload handler to update app settings, and sends notification email

Parameters:
Name Type Description
req object
res object
next object

async callback

Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

update_config_json_files(req, res, next) → {object}

form upload handler to update theme settings, and sends notification email

Parameters:
Name Type Description
req object
res object
next object

async callback

Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

update_ext_filedata(req, res)

save data from config page post

Parameters:
Name Type Description
req object
res object
Source:

update_theme_filedata(req, res)

save data from theme page post

Parameters:
Name Type Description
req object
res object
Source:

update_theme_settings(req, res, next) → {object}

form upload handler to update theme settings, and sends notification email

Parameters:
Name Type Description
req object
res object
next object

async callback

Source:
Returns:

reponds with an error page or sends user to authenicated in resource

Type
object

userrole_new(req, res) → {object}

create a new usr role

Parameters:
Name Type Description
req object
res object
Source:
Returns:

reponds with an error page or requested view

Type
object