Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148981 | Nov 10,2019 07:22 PM UTC | Nov 11,2019 12:24 PM UTC | Angular - EJ 2 | 2 |
![]() |
Tags: Schedule |
app.post("/GetData", (req, res) => {
Event.find({}, function(err, events) {
res.send(events);
});
});
I see in my Network tab in my browsers developer tools that when the Scheduler is loaded, the 'getData returns a '200 OK' with the request
Running the 'GetData' endpoint in postman gives me these documents:
{"_id": "5dc835d6wefw835250ab4456","startTime": "Tue Nov 12 2019 12:00:00 GMT+0100 (GMT+01:00)","endTime": "Tue Nov 12 2019 12:30:00 GMT+0100 (GMT+01:00)","subject": "Work","klant": "Simon","km": 43,"business": true,"location": "Amsterdam","description": "test","__v": 0}
How does it come that I dont see the appointments in the scheduler?
private dataManager: DataManager = new DataManager({
url: 'http://localhost:8000/GetData',
crudUrl: 'http://localhost:8000/BatchData',
adaptor: new UrlAdaptor
});
this is what I have as dataManager
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.