API Docs for: 0.0.1
Show:

Controller Class

Defined in: routes/index.js:40

Route-Controller

Constructor

Controller

()

Defined in routes/index.js:40

Methods

api

(
  • req
  • res
  • next
)

Defined in routes/index.js:187

GET /api

Parameters:

  • req Object

    The request

  • res Object

    The response

  • next Object

    Next route

changePassword

(
  • req
  • res
)

Defined in routes/index.js:541

POST /settings/password

Parameters:

  • req Object

    The request

  • res Object

    The response

changeTheme

(
  • req
  • res
)

Defined in routes/index.js:628

POST /settings/theme

Parameters:

  • req Object

    The request

  • res Object

    The response

combinePluginFiles

(
  • fileList
  • callback
  • sb
)

Defined in routes/index.js:134

Recursive function to combine javascript and css files from the plugins

Parameters:

  • fileList Object

    An array containing the files to combine

    • name String

      The name of the file to combine

    • type String

      The type of the file (e.g. 'js' or 'css')

  • callback Function

    The callback method to execute after rendering

    • err String

      null if no error occured, otherwise the error

    • result String

      The rendered HTML string

  • sb Object

    optional StringBuffer containing the already combined files

createAuthToken

(
  • req
  • res
)

Defined in routes/index.js:497

POST /api/login

Parameters:

  • req Object

    The request

  • res Object

    The response

createUser

(
  • req
  • res
)

Defined in routes/index.js:581

POST /settings/user/create

Parameters:

  • req Object

    The request

  • res Object

    The response

deleteUser

(
  • req
  • res
)

Defined in routes/index.js:613

GET /settings/user/delete/:id

Parameters:

  • req Object

    The request

  • res Object

    The response

doLogin

(
  • req
  • res
)

Defined in routes/index.js:466

POST /login

Parameters:

  • req Object

    The request

  • res Object

    The response

doRegister

(
  • req
  • res
)

Defined in routes/index.js:390

POST /register

Parameters:

  • req Object

    The request

  • res Object

    The response

index

(
  • req
  • res
)

Defined in routes/index.js:166

GET /

Parameters:

  • req Object

    The request

  • res Object

    The response

isAuthorized

(
  • req
  • res
  • next
)

Defined in routes/index.js:733

Authorization check

Parameters:

  • req Object

    The request

  • res Object

    The response

  • next Object

    The next route

logout

(
  • req
  • res
)

Defined in routes/index.js:525

GET /logout

Parameters:

  • req Object

    The request

  • res Object

    The response

notFound

(
  • req
  • res
)

Defined in routes/index.js:719

Error 404

Parameters:

  • req Object

    The request

  • res Object

    The response

pluginsCss

(
  • req
  • res
)

Defined in routes/index.js:689

GET /js/plugins.css

Load the plugin css into one file and returns it

Parameters:

  • req Object

    The request

  • res Object

    The response

pluginsJs

(
  • req
  • res
)

Defined in routes/index.js:659

GET /js/plugins.js

Load the plugin javascripts into one file and returns it

Parameters:

  • req Object

    The request

  • res Object

    The response

register

(
  • req
  • res
)

Defined in routes/index.js:368

GET /register

Parameters:

  • req Object

    The request

  • res Object

    The response

renderPluginItems

(
  • app
  • res
  • i
  • callback
)

Defined in routes/index.js:48

Recursive function to render all plugin items to on page to show them on the startpage.

Parameters:

  • app Object

    The express app

  • res String

    The type to render ('settings' or 'view')

  • i Integer

    The iterator for the plugins

  • callback Function

    The callback method to execute after rendering

    • err String

      null if no error occured, otherwise the error

    • result String

      The rendered HTML string

renderSettings

(
  • req
  • res
  • {Object
)

Defined in routes/index.js:106

Render the settings page

Parameters:

  • req Object

    The Request

  • res Object

    The Reponse

  • {Object Object

    options Additional vars for the settings view

saveSettings

(
  • req
  • res
  • next
)

Defined in routes/index.js:278

POST /settings

Parameters:

  • req Object

    The request

  • res Object

    The response

  • next Object

    Next route

settings

(
  • req
  • res
  • next
)

Defined in routes/index.js:219

GET /settings

Parameters:

  • req Object

    The request

  • res Object

    The response

  • next Object

    Next route

showLogin

(
  • req
  • res
)

Defined in routes/index.js:438

GET /login

Parameters:

  • req Object

    The request

  • res Object

    The response