remove old module.exports from server aswell

This commit is contained in:
Matteo Pagliazzi
2019-10-02 19:45:27 +02:00
parent e0a2528a4f
commit 45f7cf04ab
91 changed files with 116 additions and 127 deletions

View File

@@ -432,4 +432,4 @@ api.deleteSocial = {
},
};
module.exports = api;
export default api;

View File

@@ -827,4 +827,4 @@ api.cloneChallenge = {
},
};
module.exports = api;
export default api;

View File

@@ -542,4 +542,4 @@ api.deleteChat = {
},
};
module.exports = api;
export default api;

View File

@@ -135,4 +135,4 @@ api.getContent = {
},
};
module.exports = api;
export default api;

View File

@@ -137,4 +137,4 @@ api.validateCoupon = {
},
};
module.exports = api;
export default api;

View File

@@ -19,4 +19,4 @@ api.cron = {
},
};
module.exports = api;
export default api;

View File

@@ -198,4 +198,4 @@ api.questProgress = {
},
};
module.exports = api;
export default api;

View File

@@ -1217,4 +1217,4 @@ api.getGroupPlans = {
},
};
module.exports = api;
export default api;

View File

@@ -302,4 +302,4 @@ api.updateHero = {
},
};
module.exports = api;
export default api;

View File

@@ -43,4 +43,4 @@ api.geti18nBrowserScript = {
},
};
module.exports = api;
export default api;

View File

@@ -1,4 +1,5 @@
// NOTE: this file is only used because the mobile apps expect IAP routes
// to be found at /api/v3/iap instead of /iap.
module.exports = require('../top-level/payments/iap');
import iap from '../top-level/payments/iap';
export default iap;

View File

@@ -33,4 +33,4 @@ api.getInboxMessages = {
},
};
module.exports = api;
export default api;

View File

@@ -737,4 +737,4 @@ api.transferGems = {
};
module.exports = api;
export default api;

View File

@@ -51,4 +51,4 @@ api.getModelPaths = {
},
};
module.exports = api;
export default api;

View File

@@ -87,4 +87,4 @@ api.tellMeLaterNews = {
},
};
module.exports = api;
export default api;

View File

@@ -191,4 +191,4 @@ api.seeNotifications = {
},
};
module.exports = api;
export default api;

View File

@@ -103,4 +103,4 @@ api.removePushDevice = {
},
};
module.exports = api;
export default api;

View File

@@ -513,4 +513,4 @@ api.leaveQuest = {
},
};
module.exports = api;
export default api;

View File

@@ -142,4 +142,4 @@ api.getBackgroundShopItems = {
},
};
module.exports = api;
export default api;

View File

@@ -22,4 +22,4 @@ api.getStatus = {
},
};
module.exports = api;
export default api;

View File

@@ -246,4 +246,4 @@ api.deleteTag = {
},
};
module.exports = api;
export default api;

View File

@@ -1356,4 +1356,4 @@ api.deleteTask = {
},
};
module.exports = api;
export default api;

View File

@@ -541,4 +541,4 @@ api.getGroupApprovals = {
},
};
module.exports = api;
export default api;

View File

@@ -1689,4 +1689,4 @@ api.movePinnedItem = {
},
};
module.exports = api;
export default api;

View File

@@ -65,4 +65,4 @@ api.castSpell = {
},
};
module.exports = api;
export default api;

View File

@@ -134,4 +134,4 @@ api.allocateNow = {
},
};
module.exports = api;
export default api;

View File

@@ -222,4 +222,4 @@ api.deleteWebhook = {
},
};
module.exports = api;
export default api;

View File

@@ -43,4 +43,4 @@ api.getWorldState = {
},
};
module.exports = api;
export default api;