Skip to content

Commit 656de27

Browse files
authored
[DEV-2246] Customize user agent for sample app (#4)
Set a customized user agent for the sample app. https://circlepay.atlassian.net/browse/DEV-2246
1 parent 24e90be commit 656de27

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

app/api/user/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export async function POST(request) {
2727
headers: {
2828
'Authorization': `Bearer ${process.env.CIRCLE_API_KEY}`,
2929
'Content-Type': 'application/json',
30+
'User-Agent': 'PW-TEST-SERVER',
3031
},
3132
body: JSON.stringify({
3233
'userId': user_id,

app/api/user/token/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function POST(request) {
2525
headers: {
2626
'Authorization': `Bearer ${process.env.CIRCLE_API_KEY}`,
2727
'Content-Type': 'application/json',
28+
'User-Agent': 'PW-TEST-SERVER',
2829
},
2930
body: JSON.stringify({
3031
'userId': userId,

app/api/wallets/[walletId]/balances/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export async function GET(request, params) {
3131
'Authorization': `Bearer ${process.env.CIRCLE_API_KEY}`,
3232
'Content-Type': 'application/json',
3333
'X-User-Token': userTokenFromHeader,
34+
'User-Agent': 'PW-TEST-SERVER',
3435
},
3536
});
3637

app/api/wallets/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export async function GET(request) {
3030
'Authorization': `Bearer ${process.env.CIRCLE_API_KEY}`,
3131
'Content-Type': 'application/json',
3232
'X-User-Token': userTokenFromHeader,
33+
'User-Agent': 'PW-TEST-SERVER',
3334
},
3435
});
3536

0 commit comments

Comments
 (0)