2023-01-13 05:40:33 +01:00
|
|
|
import type { IEndpoint } from "./endpoints";
|
2022-12-19 10:58:37 +01:00
|
|
|
|
2023-01-13 05:40:33 +01:00
|
|
|
import * as cp___instanceInfo from "./endpoints/compatibility/instance-info.js";
|
|
|
|
import * as cp___customEmojis from "./endpoints/compatibility/custom-emojis.js";
|
2022-12-19 10:58:37 +01:00
|
|
|
|
|
|
|
const cps = [
|
2023-01-13 05:40:33 +01:00
|
|
|
["v1/instance", cp___instanceInfo],
|
|
|
|
["v1/custom_emojis", cp___customEmojis],
|
2022-12-19 10:58:37 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
const compatibility: IEndpoint[] = cps.map(([name, cp]) => {
|
|
|
|
return {
|
|
|
|
name: name,
|
|
|
|
exec: cp.default,
|
|
|
|
meta: cp.meta || {},
|
|
|
|
params: cp.paramDef,
|
|
|
|
} as IEndpoint;
|
|
|
|
});
|
|
|
|
|
|
|
|
export default compatibility;
|