Removed the "latest-version" endpoint

This commit is contained in:
Natty 2023-07-23 14:04:24 +02:00
parent 467c609b0f
commit 998a72d492
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
2 changed files with 0 additions and 31 deletions

View File

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

View File

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