-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.conf.mjs
More file actions
52 lines (52 loc) · 1.75 KB
/
proxy.conf.mjs
File metadata and controls
52 lines (52 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
export default {
'/version': {
target: 'https://example.com', // unused because we hard code the response using bypass, but the Angular CLI needs a dummy value to function
changeOrigin: true,
bypass: function (req, res) {
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify({ build: '1.0.0-dev' }));
}
},
'/api/auth/login': {
target: 'http://127.0.0.1:9099/identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=dummy',
changeOrigin: true,
pathRewrite: {
'^/api/auth/login': ''
}
},
'/api/auth/signup': {
target: 'http://127.0.0.1:9099/identitytoolkit.googleapis.com/v1/accounts:signUp?key=dummy',
changeOrigin: true,
pathRewrite: {
'^/api/auth/signup': ''
}
},
'/api/auth/update-profile': {
target: 'http://127.0.0.1:9099/identitytoolkit.googleapis.com/v1/accounts:update?key=dummy',
changeOrigin: true,
pathRewrite: {
'^/api/auth/update-profile': ''
}
},
'/api/auth/lookup-profile': {
target: 'http://127.0.0.1:9099/identitytoolkit.googleapis.com/v1/accounts:lookup?key=dummy',
changeOrigin: true,
pathRewrite: {
'^/api/auth/lookup-profile': ''
}
},
'/api/auth/refresh': {
target: 'http://127.0.0.1:9099/securetoken.googleapis.com/v1/token?key=dummy',
changeOrigin: true,
pathRewrite: {
'^/api/auth/refresh': ''
}
},
'/api/data': {
target: 'http://127.0.0.1:8080/v1/projects/todo-app-6fd34/databases/(default)/documents',
changeOrigin: true,
pathRewrite: {
'^/api/data': ''
}
}
}