hippofish/packages/backend/src/server/api/compatibility.ts
2023-07-25 21:25:37 -07:00

20 lines
514 B
TypeScript

import type { IEndpoint } from "./endpoints";
import * as cp___custom_emojis from "./endpoints/compatibility/custom-emojis.js";
import * as ep___instance_peers from "./endpoints/compatibility/peers.js";
const cps = [
["v1/custom_emojis", cp___custom_emojis],
["v1/instance/peers", ep___instance_peers],
];
const compatibility: IEndpoint[] = cps.map(([name, cp]) => {
return {
name: name,
exec: cp.default,
meta: cp.meta || {},
params: cp.paramDef,
} as IEndpoint;
});
export default compatibility;