Skip to content

Commit 7d35f94

Browse files
committedJan 21, 2018
Revert "simplified the proxy"
This reverts commit 5e62332.
1 parent 5e62332 commit 7d35f94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎proxy.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/": {
2+
"/api": {
33
"target": "http://localhost:1337",
44
"secure": false
55
}

‎src/app/home/home.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class HomeComponent implements OnInit {
2525
}
2626
};
2727

28-
request.open('GET', '/users', true);
28+
request.open('GET', '/api/users', true);
2929
request.send(null);
3030
}
3131

0 commit comments

Comments
 (0)
Please sign in to comment.