1.4.8 with changed endpoint

This commit is contained in:
night0721 2022-01-29 10:51:51 +08:00
parent ea026fc91d
commit c109744a0e
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "cath", "name": "cath",
"version": "1.4.7", "version": "1.4.8",
"description": "A powerful package that can interact with Cath API", "description": "A powerful package that can interact with Cath API",
"main": "./dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",

View file

@ -20,7 +20,7 @@ export class CODMClient {
*/ */
public async getperk(name: string): Promise<PerkData> { public async getperk(name: string): Promise<PerkData> {
const data = await axios const data = await axios
.get(`${config.api}/api/v1/codm/perks?name=${name}`, { .get(`${config.api}/api/v1/codm/perk?name=${name}`, {
headers: { headers: {
Authorization: this.key, Authorization: this.key,
}, },