28 lines
573 B
TypeScript
28 lines
573 B
TypeScript
import define from '../define.js';
|
|
|
|
export const meta = {
|
|
tags: ['meta'],
|
|
|
|
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 () => {
|
|
let patrons;
|
|
await fetch('https://codeberg.org/thatonecalculator/calckey/raw/branch/develop/patrons.json')
|
|
.then((response) => response.json())
|
|
.then((data) => {
|
|
patrons = data[0];
|
|
});
|
|
|
|
return {
|
|
patrons,
|
|
};
|
|
});
|