bug fix
This commit is contained in:
parent
05100b1169
commit
98c4e702b7
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cath",
|
"name": "cath",
|
||||||
"version": "1.4.5",
|
"version": "1.4.6",
|
||||||
"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",
|
||||||
|
|
|
@ -24,7 +24,7 @@ export class CodeClient {
|
||||||
if (!description) throw new CathError("Missing 'description' property");
|
if (!description) throw new CathError("Missing 'description' property");
|
||||||
if (!code) throw new CathError("Missing 'code' property");
|
if (!code) throw new CathError("Missing 'code' property");
|
||||||
const data = await axios
|
const data = await axios
|
||||||
.post(`${config.code}/botcreate`, {
|
.post(`${config.code}/api/botcreate`, {
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
code,
|
code,
|
||||||
|
|
|
@ -21,7 +21,7 @@ export class URLClient {
|
||||||
if (!shortName) throw new CathError("Missing 'shortName' property");
|
if (!shortName) throw new CathError("Missing 'shortName' property");
|
||||||
if (!targetURL) throw new CathError("Missing 'targetURL' property");
|
if (!targetURL) throw new CathError("Missing 'targetURL' property");
|
||||||
const data = await axios
|
const data = await axios
|
||||||
.post(`${config.url}/create`, {
|
.post(`${config.url}/api/create`, {
|
||||||
shortUrl: shortName,
|
shortUrl: shortName,
|
||||||
fullUrl: targetURL,
|
fullUrl: targetURL,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue