Skip to content

Commit

Permalink
add user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Oct 23, 2023
1 parent 5606202 commit dbbdc40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/handlers/engine-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const eapi = async (req: express.Request, res: express.Response) => {
const data = req.body;

const url = `${BASE_URL}/${PATH_RPC}/${PATH_CONTRACTS}`;
const headers = { 'Content-type': 'application/json' };
const headers = { 'Content-type': 'application/json', 'USER-Agent': 'Ecency Apps' };

pipe(baseApiRequest(url, "POST", headers, data), res);
}
Expand All @@ -29,7 +29,7 @@ export const erewardapi = async (req: express.Request, res: express.Response) =>
const params = req.query;

const url = `${ENGINE_REWARDS_URL}@${username}`;
const headers = { 'Content-type': 'application/json' };
const headers = { 'Content-type': 'application/json', 'User-Agent': 'Ecency Apps' };

pipe(baseApiRequest(url, "GET", headers, undefined, params), res);
}
Expand All @@ -38,7 +38,7 @@ export const echartapi = async (req: express.Request, res: express.Response) =>
const params = req.query;

const url = `${ENGINE_CHART_URL}`;
const headers = { 'Content-type': 'application/json' };
const headers = { 'Content-type': 'application/json', 'User-Agent': 'Ecency Apps' };

pipe(baseApiRequest(url, "GET", headers, undefined, params), res);
}
Expand All @@ -47,7 +47,7 @@ export const engineAccountHistory = (req: express.Request, res: express.Respons
const params = req.query;

const url = `${ENGINE_ACCOUNT_HISTORY_URL}`;
const headers = { 'Content-type': 'application/json' };
const headers = { 'Content-type': 'application/json', 'User-Agent': 'Ecency Apps' };

pipe(baseApiRequest(url, "GET", headers, undefined, params), res);
}
Expand Down

0 comments on commit dbbdc40

Please sign in to comment.