diff --git a/packages/backend/src/server/api/endpoints.ts b/packages/backend/src/server/api/endpoints.ts index 42e7125f87..75d8801958 100644 --- a/packages/backend/src/server/api/endpoints.ts +++ b/packages/backend/src/server/api/endpoints.ts @@ -272,7 +272,6 @@ import * as ep___recommendedInstances from "./endpoints/recommended-instances.js import * as ep___pinnedUsers from "./endpoints/pinned-users.js"; import * as ep___customMOTD from "./endpoints/custom-motd.js"; import * as ep___customSplashIcons from "./endpoints/custom-splash-icons.js"; -import * as ep___latestVersion from "./endpoints/latest-version.js"; import * as ep___release from "./endpoints/release.js"; import * as ep___promo_read from "./endpoints/promo/read.js"; import * as ep___requestResetPassword from "./endpoints/request-reset-password.js"; @@ -609,7 +608,6 @@ const eps = [ ["renote-mute/list", ep___renote_mute_list], ["custom-motd", ep___customMOTD], ["custom-splash-icons", ep___customSplashIcons], - ["latest-version", ep___latestVersion], ["release", ep___release], ["promo/read", ep___promo_read], ["request-reset-password", ep___requestResetPassword], diff --git a/packages/backend/src/server/api/endpoints/latest-version.ts b/packages/backend/src/server/api/endpoints/latest-version.ts deleted file mode 100644 index 72e84ae044..0000000000 --- a/packages/backend/src/server/api/endpoints/latest-version.ts +++ /dev/null @@ -1,29 +0,0 @@ -import define from "../define.js"; - -export const meta = { - tags: ["meta"], - - requireCredential: false, - requireCredentialPrivateMode: true, -} as const; - -export const paramDef = { - type: "object", - properties: {}, - required: [], -} as const; - -export default define(meta, paramDef, async () => { - let tag_name; - await fetch( - "https://codeberg.org/api/v1/repos/calckey/calckey/releases?draft=false&pre-release=false&page=1&limit=1", - ) - .then((response) => response.json()) - .then((data) => { - tag_name = data[0].tag_name; - }); - - return { - tag_name, - }; -});