Hi there,
I have recently migrated to v5 and its great! everything looks really nice.
I seem to be having a problem where the pages the fetch data from an online api are no longer working after the migration.
Here is a sample of my code in the route.js
{
path: ‘***’,
async: function (routeTo, routeFrom, resolve, reject) {
var router = this;
var app = router.app;
app.preloader.show();
app.request({
method: 'GET',
url: '*****/api/auth/subscriptions',
dataType: 'json',
success: function (data) {
app.preloader.hide();
resolve(
// How and what to load: template
{
component: NotificationSettingsPage,
},
// Custom template context
{
context: {
data: data,
},
}
);
},
error: function(e,xhr) {
app.preloader.hide();
app.dialog.alert('An error occurred, please try again.');
}
});
}
},