Module: controllers/admin

Members

(route) Admin

Route:
Method Path
GET /admin
Renders the admin page.
Response Code:
Type Description
200 if the request is successful
Source:

(route) config

Route:
Method Path
GET /config/:valueID
Renders a specific config page.
Route Parameters:
Name Type Description
:valueID String is the SerialID of the config.
Source:

(route) editsensor

Route:
Method Path
GET /editsensor/:SerialID
Renders a specific sensorhub edit page.
Route Parameters:
Name Type Description
:SerialID String is the SerialID of the limit.
Source:

(route) Flip

Route:
Method Path
GET /admin
Flips the inMargin field of a data-object.
Route Parameters:
Name Type Description
:id String mongodb _id of the object to flip.
Response Code:
Type Description
302 if the request is successful
500 if the request is failed
Source:

(route) Profile

Route:
Method Path
POST /editsensor/:SerialID
Saves the changes to an sensorhub
Source:

(route) Profile

Route:
Method Path
POST /config/:valueID
Saves the changes to an config
Source:
Route:
Method Path
POST /admin/upload-logo
Uploads a logo.
Response Code:
Type Description
200 if a PNG file is uploaded successfully
400 if no files or the wrong file type is uploaded
Source: