Controller Class
Route-Controller
Constructor
Controller
()
Item Index
Methods
api
-
req
-
res
-
next
GET /api
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
-
next
ObjectNext route
changePassword
-
req
-
res
POST /settings/password
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
changeTheme
-
req
-
res
POST /settings/theme
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
combinePluginFiles
-
fileList
-
callback
-
sb
Recursive function to combine javascript and css files from the plugins
Parameters:
-
fileList
ObjectAn array containing the files to combine
-
name
StringThe name of the file to combine
-
type
StringThe type of the file (e.g. 'js' or 'css')
-
-
callback
FunctionThe callback method to execute after rendering
-
err
Stringnull if no error occured, otherwise the error
-
result
StringThe rendered HTML string
-
-
sb
Objectoptional StringBuffer containing the already combined files
createAuthToken
-
req
-
res
POST /api/login
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
createUser
-
req
-
res
POST /settings/user/create
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
deleteUser
-
req
-
res
GET /settings/user/delete/:id
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
doLogin
-
req
-
res
POST /login
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
doRegister
-
req
-
res
POST /register
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
index
-
req
-
res
GET /
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
isAuthorized
-
req
-
res
-
next
Authorization check
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
-
next
ObjectThe next route
logout
-
req
-
res
GET /logout
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
notFound
-
req
-
res
Error 404
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
pluginsCss
-
req
-
res
GET /js/plugins.css
Load the plugin css into one file and returns it
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
pluginsJs
-
req
-
res
GET /js/plugins.js
Load the plugin javascripts into one file and returns it
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
register
-
req
-
res
GET /register
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
renderPluginItems
-
app
-
res
-
i
-
callback
Recursive function to render all plugin items to on page to show them on the startpage.
Parameters:
-
app
ObjectThe express app
-
res
StringThe type to render ('settings' or 'view')
-
i
IntegerThe iterator for the plugins
-
callback
FunctionThe callback method to execute after rendering
-
err
Stringnull if no error occured, otherwise the error
-
result
StringThe rendered HTML string
-
renderSettings
-
req
-
res
-
{Object
Render the settings page
Parameters:
-
req
ObjectThe Request
-
res
ObjectThe Reponse
-
{Object
Objectoptions Additional vars for the settings view
saveSettings
-
req
-
res
-
next
POST /settings
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
-
next
ObjectNext route
settings
-
req
-
res
-
next
GET /settings
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response
-
next
ObjectNext route
showLogin
-
req
-
res
GET /login
Parameters:
-
req
ObjectThe request
-
res
ObjectThe response