import { QueryApi } from '../src/query-api.ts'; export const queryApi = new QueryApi(); export const api = { "test": { "test": { "path": "test", "key": "test", "id": "rWfTW4jLlwPWN_LdYXPBO", "description": "test route", "type": "route", "middleware": [], "metadata": { "args": { "a": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "string", "description": "arg a" } } } } }, // Additional routes can be added here } as const; const res = await queryApi.post(api.test.test, { a: 'test' });