25 lines
566 B
TypeScript
25 lines
566 B
TypeScript
|
import define from '../define.js';
|
||
|
|
||
|
export const meta = {
|
||
|
tags: ['meta'],
|
||
|
description: 'Get release notes from Codeberg',
|
||
|
|
||
|
requireCredential: false,
|
||
|
requireCredentialPrivateMode: false,
|
||
|
} as const;
|
||
|
|
||
|
export const paramDef = {
|
||
|
type: 'object',
|
||
|
properties: {},
|
||
|
required: [],
|
||
|
} as const;
|
||
|
|
||
|
// eslint-disable-next-line import/no-default-export
|
||
|
export default define(meta, paramDef, async () => {
|
||
|
await fetch('https://codeberg.org/calckey/calckey/raw/branch/develop/release.json')
|
||
|
.then((response) => response.json())
|
||
|
.then((data) => {
|
||
|
return data;
|
||
|
});
|
||
|
});
|