diff --git a/package.json b/package.json index 77e48aa..9cd4021 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cath", - "version": "1.4.5", + "version": "1.4.6", "description": "A powerful package that can interact with Cath API", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/CodeClient/codeclient.ts b/src/CodeClient/codeclient.ts index 7f0dada..c45241c 100644 --- a/src/CodeClient/codeclient.ts +++ b/src/CodeClient/codeclient.ts @@ -24,7 +24,7 @@ export class CodeClient { if (!description) throw new CathError("Missing 'description' property"); if (!code) throw new CathError("Missing 'code' property"); const data = await axios - .post(`${config.code}/botcreate`, { + .post(`${config.code}/api/botcreate`, { title, description, code, diff --git a/src/URLClient/urlclient.ts b/src/URLClient/urlclient.ts index 960eeb2..1371b42 100644 --- a/src/URLClient/urlclient.ts +++ b/src/URLClient/urlclient.ts @@ -21,7 +21,7 @@ export class URLClient { if (!shortName) throw new CathError("Missing 'shortName' property"); if (!targetURL) throw new CathError("Missing 'targetURL' property"); const data = await axios - .post(`${config.url}/create`, { + .post(`${config.url}/api/create`, { shortUrl: shortName, fullUrl: targetURL, })