Commit ce8f8f8ecc6ed438718d4080403a764463ff9131
1 parent
2d63db89
Exists in
master
and in
1 other branch
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,7 +26,11 @@ function browserSyncInit(baseDir, browser) { | ||
26 | routes: routes | 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 | browserSync.instance = browserSync.init({ | 35 | browserSync.instance = browserSync.init({ |
32 | startPath: '/', | 36 | startPath: '/', |
src/app/components/noosfero-blocks/profile-image/profile-image.html
1 | <div class="profile-image"> | 1 | <div class="profile-image"> |
2 | <img src="assets/images/icons-app/community-big.png"> | 2 | <img src="assets/images/icons-app/community-big.png"> |
3 | </div> | 3 | </div> |
4 | +<div class='admin-link'> | ||
5 | + <a target="_self" ng-href="/myprofile/{{vm.owner.identifier}}">Control panel</a> | ||
6 | +</div> |