Last active
March 5, 2018 18:20
-
-
Save hustKiwi/88f1b696d156457de8c4b4a4a8a78866 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (cfg.useProxyApi) { | |
router.use(proxy(['/api/weekly_usage', '/api/app_usage'], { | |
target: 'https://dev-app.ipifny.com', | |
changeOrigin: true, | |
pathRewrite: { | |
'^/api/weekly_usage': '/api/app-usage/rescuetime/weekly_usages', | |
'^/api/app_usage': '/api/app-usage/rescuetime/app_usages' | |
} | |
})); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment