Skip to content

Commit 01e130b

Browse files
authored
feat: verify API endpoint with /version (#1568) (#1569)
1 parent d409368 commit 01e130b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apis/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313

1414
export const checkEndpointAPI = (url: string, secret: string) =>
1515
ky
16-
.get(url, {
16+
.get(url.endsWith('/') ? `${url}version` : `${url}/version`, {
1717
headers: secret
1818
? {
1919
Authorization: `Bearer ${secret}`,

0 commit comments

Comments
 (0)