Removed the "latest-version" endpoint
This commit is contained in:
parent
467c609b0f
commit
998a72d492
|
@ -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],
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
});
|
Loading…
Reference in New Issue