The Spark Admin is responsible for the higher-level functions of Spark, that cannot be executed by the app on the frontend. At this moment, the Admin serves these purposes:
Route |
Method |
Parameters |
Description |
/feed |
GET |
uid |
Finds all shifts for the provided user and returns iCal feed |
Route |
Method |
Parameters |
Description |
/createNewUser |
POST |
email |
Creates a new user in Firebase and returns the uid |
/getSchedules |
GET |
uid |
Gets all schedules for a single employee |
/getUser |
GET |
uid |
Gets user data for a single employee |
/activateAccount |
GET |
token, email |
Verifies activation token by email address |
/activateAccount |
POST |
token, email, password |
Sets new password for user and sets status to 'active' |
Function |
Description |
shiftDatabase() |
Shift all demo content by a week every Monday at midnight |
getSettings() |
Serve settings form database, store settings in memory for one hour |