This commit is contained in:
night0721 2021-11-17 03:55:59 +08:00
parent 05100b1169
commit 98c4e702b7
3 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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,

View file

@ -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,
})