Commit ce8f8f8ecc6ed438718d4080403a764463ff9131
1 parent
2d63db89
Exists in
master
and in
38 other branches
Access myprofile from backend
Showing
2 changed files
with
8 additions
and
1 deletions
Show diff stats
gulp/server.js
| ... | ... | @@ -26,7 +26,11 @@ function browserSyncInit(baseDir, browser) { |
| 26 | 26 | routes: routes |
| 27 | 27 | }; |
| 28 | 28 | |
| 29 | - server.middleware = proxyMiddleware('http://localhost:3000/api', {changeOrigin:true}); | |
| 29 | + server.middleware = [proxyMiddleware('http://localhost:3000/api', {changeOrigin:true}), | |
| 30 | + proxyMiddleware('http://localhost:3000/myprofile', {changeOrigin:true}), | |
| 31 | + proxyMiddleware('http://localhost:3000/designs', {changeOrigin:true}), | |
| 32 | + proxyMiddleware('http://localhost:3000/images', {changeOrigin:true}), | |
| 33 | + proxyMiddleware('http://localhost:3000/assets', {changeOrigin:true})]; | |
| 30 | 34 | |
| 31 | 35 | browserSync.instance = browserSync.init({ |
| 32 | 36 | startPath: '/', | ... | ... |
src/app/components/noosfero-blocks/profile-image/profile-image.html