2022-11-19 08:54:50 +01:00
|
|
|
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) => {
|
2022-11-19 09:04:35 +01:00
|
|
|
patrons = data['patrons'];
|
2022-11-19 08:54:50 +01:00
|
|
|
});
|
|
|
|
|
2022-11-19 09:08:45 +01:00
|
|
|
return patrons;
|
2022-11-19 08:54:50 +01:00
|
|
|
});
|