Appointment routes module.
- Source:
- Source:
Members
(inner) calendarData :object
Calendar data object variable.
Type:
- object
- Source:
(inner) calendarData :object
Calendar data object variable.
Type:
- object
- Source:
(inner) delete/view-appointment
Routing to delete appointment on view-appointment page.
- Source:
(inner) delete/view-appointment
Routing to delete appointment on view-appointment page.
- Source:
(inner) endDateObj :object
End date data object variable.
Type:
- object
- Source:
(inner) endDateObj :object
End date data object variable.
Type:
- object
- Source:
(inner, constant) Event
Require module for event model file.
- Source:
(inner, constant) Event
Require module for event model file.
- Source:
(inner, constant) express
Require module for express lightweight middleware.
- Source:
(inner, constant) express
Require module for express lightweight middleware.
- Source:
(inner, constant) gcalFunction
Require module for gCal function in gcalendar file.
- Source:
(inner, constant) gcalFunction
Require module for gCal function in gcalendar file.
- Source:
(inner) get/appointment
Route to index page
- Source:
(inner) get/appointment
Route to index page
- Source:
(inner) get/view-appointment
Route to get view appointment page
- Source:
(inner) get/view-appointment
Route to get view appointment page
- Source:
(inner) get/view-appointment/update/id
Routing to update appointment by ID
- Source:
(inner) get/view-appointment/update/id
Routing to update appointment by ID
- Source:
(inner, constant) mongoose
Require module for MongoDB connection.
- Source:
(inner, constant) mongoose
Require module for MongoDB connection.
- Source:
(inner) newData :object
Updated user data object variable.
Type:
- object
- Source:
(inner) newData :object
Updated user data object variable.
Type:
- object
- Source:
(inner) post/
Routing to root page served on '/'.
- Source:
(inner) post/
Routing to root page served on '/'.
- Source:
(inner) post/view-appointment
Routing to post to view-appointment page.
- Source:
(inner) post/view-appointment
Routing to post to view-appointment page.
- Source:
(inner, constant) router
Require module for express router.
- Source:
(inner, constant) router
Require module for express router.
- Source:
(inner) startDateObj :object
Start date data object variable.
Type:
- object
- Source:
(inner) startDateObj :object
Start date data object variable.
Type:
- object
- Source:
Methods
(inner) authCheck(req, res, next)
Authentication check to see if the user is already logged in
Parameters:
| Name | Type | Description |
|---|---|---|
req |
object | The request object |
res |
object | The response object |
next |
object | The next object |
req.user |
object | Google User object |
- Source:
(inner) authCheck(req, res, next)
Authentication check to see if the user is already logged in
Parameters:
| Name | Type | Description |
|---|---|---|
req |
object | The request object |
res |
object | The response object |
next |
object | The next object |
req.user |
object | Google User object |
- Source:
(inner) getAppointmentInfo(res, req)
Function to get appointment info of authenticated user.
Parameters:
| Name | Type | Description |
|---|---|---|
res |
object | Response |
req |
object | Request |
- Source:
(inner) getAppointmentInfo(res, req)
Function to get appointment info of authenticated user.
Parameters:
| Name | Type | Description |
|---|---|---|
res |
object | Response |
req |
object | Request |
- Source:
(inner) getAppointmentList(res, req)
Function to get appointment list of authenticated user.
Parameters:
| Name | Type | Description |
|---|---|---|
res |
object | Response |
req |
object | Request |
- Source:
(inner) getAppointmentList(res, req)
Function to get appointment list of authenticated user.
Parameters:
| Name | Type | Description |
|---|---|---|
res |
object | Response |
req |
object | Request |
- Source:
(async, inner) run()
Function to run gCal functions asynchronously
- Source:
(async, inner) run()
Function to run gCal functions asynchronously
- Source: